From patchwork Wed Nov 22 22:12:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 13465486 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3B0A5C61DA7 for ; Wed, 22 Nov 2023 22:13:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JQycSC0IoOb2E6XkDvEc1ZxDFdSuhRRgUZZqbmhWPcE=; b=jGbMc1YlG1+gyj Upsg/TsX5um+lCf6nbPp2ap5COXyQbAtUY4TmC/Cp/6TNnEfAwN0lpJW1TW3ABuPUB5QienbPUIeN oFGOhwQ4mdqHkK3dWYcBCKprudSt+YC0QogdLbW6zY/BjJp6UNu0Mf5qM4KZzoTIUkEnK/ZIMSxkI Rjtfk0k6FOGM7w5YoM/VhoYN3udS8rDtj5zGu9dXztzU2SZl12qIA1xVrm5PurPaKXrJCTHdXPoWG 9Sn58pyh9SZAyOiTtQ+olgkGvTSxHrgEG6I/ZjGmGeN5Gje4uZITJe3qUIKEY2GoY/IdFR9xHePdg XEcKkac6O/Tm0qFK59sQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5vSj-003Am1-18; Wed, 22 Nov 2023 22:12:49 +0000 Received: from mail-io1-f42.google.com ([209.85.166.42]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5vSd-003Aik-1e; Wed, 22 Nov 2023 22:12:44 +0000 Received: by mail-io1-f42.google.com with SMTP id ca18e2360f4ac-7b350130c3fso6481539f.3; Wed, 22 Nov 2023 14:12:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700691162; x=1701295962; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hU6Wnghj5KH1Ld3lLkNyhwgfAXJhDGyB0CCvRi7u8mk=; b=qfetSuuLlA1VUfqBO33rgbolxqUrHpz4gHG+uGZO0sbK36U2UL2BHjfGGuvnUPfkpd w8ncIqSucTNT/52O9CJl+0NdOUNepK1+YVHXAN0UTtE8pPsYS/dY9XmNXjK92l5Da51/ Kzm7BRTZh3qOge/fETJLkLwQR0eI5s7dNyUZC0Uic2YAUsSvFllWlH1pUZ7ko2M8TfXA 0NV+knjIG/dkndutk6LgIXEX+4HgtfFVbTTHuoDBIySSfVbWLXyaxrIFQjbSm7DdeTOR jVq+jn9i1IkfvLNBiUJjw44iPVRpYNGaGP++XwgPsCLZNHxec8ioNY0k/fOk7sqj2EGo PZ1w== X-Gm-Message-State: AOJu0Yw9K/Lava3wa0Oebua9575Knh/h7anEcQZrji1ciXeAla+qo/8J +wUX1ZXqDa5rX2r0CKw5GQ== X-Google-Smtp-Source: AGHT+IF8osr8TMYr2K7RbdJl1f0Qs0a8Vvy9ayPPg6W5HhHI5G6ri/6sDydnhfguLO7f2AvVQEKSig== X-Received: by 2002:a92:908:0:b0:359:d397:c806 with SMTP id y8-20020a920908000000b00359d397c806mr4100582ilg.18.1700691162319; Wed, 22 Nov 2023 14:12:42 -0800 (PST) Received: from herring.priv ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id r3-20020a92cd83000000b00357ce043118sm159221ilb.79.2023.11.22.14.12.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 14:12:41 -0800 (PST) Received: (nullmailer pid 2753836 invoked by uid 1000); Wed, 22 Nov 2023 22:12:33 -0000 From: Rob Herring Date: Wed, 22 Nov 2023 15:12:32 -0700 Subject: [PATCH v2 1/4] kbuild: Move dtc graph_child_address warning to W=2 MIME-Version: 1.0 Message-Id: <20231122-dtc-warnings-v2-1-bd4087325392@kernel.org> References: <20231122-dtc-warnings-v2-0-bd4087325392@kernel.org> In-Reply-To: <20231122-dtc-warnings-v2-0-bd4087325392@kernel.org> To: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Krzysztof Kozlowski , Alim Akhtar , Conor Dooley Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org X-Mailer: b4 0.13-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231122_141243_548184_E65443B8 X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are cases where having a single child node with a unit-address is valid. For example, other child nodes may be optional or added via a DT overlay. This hasn't mattered until now, but as platforms become free of W=1 warnings, we want to enable W=1 by default on a per platform basis. So move the warning to W=2. In the process, the logic can be reworked a bit to avoid specifying a given warning in multiple places. Signed-off-by: Rob Herring --- scripts/Makefile.lib | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 68d0134bdbf9..a67f781ae8ee 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -340,8 +340,6 @@ quiet_cmd_gzip = GZIP $@ # DTC # --------------------------------------------------------------------------- DTC ?= $(objtree)/scripts/dtc/dtc -DTC_FLAGS += -Wno-interrupt_provider \ - -Wno-unique_unit_address # Disable noisy checks by default ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN)),) @@ -357,9 +355,11 @@ endif ifneq ($(findstring 2,$(KBUILD_EXTRA_WARN)),) DTC_FLAGS += -Wnode_name_chars_strict \ - -Wproperty_name_chars_strict \ - -Winterrupt_provider \ - -Wunique_unit_address + -Wproperty_name_chars_strict +else +DTC_FLAGS += -Wno-interrupt_provider \ + -Wno-unique_unit_address \ + -Wno-graph_child_address endif DTC_FLAGS += $(DTC_FLAGS_$(basetarget)) From patchwork Wed Nov 22 22:12:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 13465484 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2ED42C61D97 for ; Wed, 22 Nov 2023 22:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EyaUj7PKi5vNdsWI+s1VerqVJNOZD+I8WnmnBSbQ3b8=; b=JO6uSTsvwYQrjP NSCfg1ITL+nXcxphf0Z4DhIhWvyRjUuLC2XlIs2CGUji+DRdqY49AIIwP6ho/4X1kS1H2XA+IiKkr doHWyctJ+de/A1naqLnm8fBEx8/11qJTthGXwmvbTNa+uOOpx/9iiuCSq18Ko7su+fioBRHzp9rpi +fYxvPSuGMRMrtbgie9CMdAvNQkCpj38uScF3Pf0MYzKBU94+lGuTeLbAB3mcEluRpehuI45gwsgC hSvMAS5r8QYYSS0ssa2rjt4LGF3bAWJmqhsJOnIvoViPEnF/F2ipT9RYhbOYbvT/7TamIHs9p0yzu juGTX/J3J6PO8SRDv40A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5vSo-003Ape-2e; Wed, 22 Nov 2023 22:12:54 +0000 Received: from mail-io1-f41.google.com ([209.85.166.41]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5vSj-003Al5-01; Wed, 22 Nov 2023 22:12:50 +0000 Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-7a93df91813so6582539f.2; Wed, 22 Nov 2023 14:12:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700691168; x=1701295968; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SvKVScUhvKKHq5yH2cV8DV0lJfU3kh2MuS6ZYH4ebh8=; b=iUHP5Om+dJOVNtyNE5zhhijepkL0BqqWiF4hzLsXCUe81uZ33mTKJHS1j2VVQj4L/L Ut2uCIR1l2jWAUjRION2oKPzuYfaCqle8YGMraAYFtgGa9ZyprW//oucg+M4go1xFr9K AA5LAA+ogSNMKu1wF+HHlB2gg2m5wKC85A5c5i0s4C8eNYQJtQUYxSNq03kMieNyvpem 0dGVUqgoi6e7dsPAsuMLjJnwb00xcw2rgKQhnjGF8QSkVjDL2D51U9LQKnUDB5l/fLRh Dj00TYoJK7VgrfLX7dAWohxFNFRKKWr+LZErQLY3j+H56mlna90wUiNBEq2xLAuRpqxh UE/Q== X-Gm-Message-State: AOJu0YxgEktdHdY5obAC5H6+AjAOqnTCft4H26NcG2dX8RmvoZBc636B c5WW14Q0na+FzZCrt8shVQ== X-Google-Smtp-Source: AGHT+IGLO9xpcHV8HSJx4kSfogE9LNdREnwsjAbOU8PWDbp45WItqfhi9+N7Ml1bG8W7Xsf1CyrYyw== X-Received: by 2002:a05:6602:2c96:b0:792:8d16:91ef with SMTP id i22-20020a0566022c9600b007928d1691efmr4004136iow.18.1700691167790; Wed, 22 Nov 2023 14:12:47 -0800 (PST) Received: from herring.priv ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id q10-20020a02a30a000000b0043a0aa909bfsm83341jai.159.2023.11.22.14.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 14:12:47 -0800 (PST) Received: (nullmailer pid 2753838 invoked by uid 1000); Wed, 22 Nov 2023 22:12:33 -0000 From: Rob Herring Date: Wed, 22 Nov 2023 15:12:33 -0700 Subject: [PATCH v2 2/4] kbuild: Allow arch/platform override of dtc warning level MIME-Version: 1.0 Message-Id: <20231122-dtc-warnings-v2-2-bd4087325392@kernel.org> References: <20231122-dtc-warnings-v2-0-bd4087325392@kernel.org> In-Reply-To: <20231122-dtc-warnings-v2-0-bd4087325392@kernel.org> To: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Krzysztof Kozlowski , Alim Akhtar , Conor Dooley Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org X-Mailer: b4 0.13-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231122_141249_047739_C3E8648F X-CRM114-Status: GOOD ( 10.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order to allow enabling extra dtc warnings on a per arch or platform basis, define a new variable, KBUILD_EXTRA_WARN_DTC, which contains the warning level and can be set by an arch or platform independently of KBUILD_EXTRA_WARN. The default value is KBUILD_EXTRA_WARN as before. The platform setting and command line setting are merged. For example, with a platform that defaults to W=1, one can run 'make W=2 dtbs' which will enable both level 1 and 2 warnings. Signed-off-by: Rob Herring --- scripts/Makefile.lib | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index a67f781ae8ee..53a74e53e0ca 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -341,8 +341,10 @@ quiet_cmd_gzip = GZIP $@ # --------------------------------------------------------------------------- DTC ?= $(objtree)/scripts/dtc/dtc +KBUILD_EXTRA_WARN_DTC += $(KBUILD_EXTRA_WARN) + # Disable noisy checks by default -ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN)),) +ifeq ($(findstring 1,$(KBUILD_EXTRA_WARN_DTC)),) DTC_FLAGS += -Wno-unit_address_vs_reg \ -Wno-avoid_unnecessary_addr_size \ -Wno-alias_paths \ @@ -353,7 +355,7 @@ DTC_FLAGS += \ -Wunique_unit_address_if_enabled endif -ifneq ($(findstring 2,$(KBUILD_EXTRA_WARN)),) +ifneq ($(findstring 2,$(KBUILD_EXTRA_WARN_DTC)),) DTC_FLAGS += -Wnode_name_chars_strict \ -Wproperty_name_chars_strict else From patchwork Wed Nov 22 22:12:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 13465485 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF2D8C27C40 for ; Wed, 22 Nov 2023 22:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y9kmU5IzSmlhTg+im0cWIuym106kiJ49I+O/9SgxjXA=; b=JfUJnvottsi3yq 08gxlZRlnEKy2O5J6rm7y0ZB7hbMbh42U48Bnea/rvF79wjiEBY9I5eTB30JPpS0/BvQ0XTP/HoB9 1tI1C+NECmm4t+UrV0CYWdpuNcK0F6AOU3sffLYTmyuMLpAnUBZ5O6oNCjTiaFgx/7Q9ubeRvKFZi BqkipQoB1DcNS7EhgOVJOePyJGSd+UMe3yWKilo3Vo3ym3Me7mvQ1OpiXbeF+QwfYGHgj29T2n43p cJQMdCENKsbfJA+Lpe+ewMJDPO+jaf49On0m1AbJSjvj7sDaUombcKF6GL0XPHVP4WHRewcPD81g8 CrvwEXTFB3SaRmrpvDuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5vSk-003AnN-2J; Wed, 22 Nov 2023 22:12:50 +0000 Received: from mail-il1-f180.google.com ([209.85.166.180]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5vSg-003AjR-0v; Wed, 22 Nov 2023 22:12:47 +0000 Received: by mail-il1-f180.google.com with SMTP id e9e14a558f8ab-35b0fc91c81so903805ab.1; Wed, 22 Nov 2023 14:12:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700691165; x=1701295965; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=shYyO58BPes3ozOUzmFhahNxoCiZTriaHChWVdh269w=; b=pQ8hbjobN51pDLrIOw1ai/YgDuH44XboLN6z781TcpXa8IHuDezQeo1puL/ar8+5mG jVQ/PBS3o4GDRdA2/xya+NQDfCuuRrYgEnSOjC0ZKw5lJSIWoy8cWAwWxc5oI76iN4NX FQU7uLbuD+qkz+C2sisX1Xkb3JsZYsRzD7EQzVbftvvAb7YhKZYQcN4tN5e5J0FmMZaR ZSsuYEEI3Rdev1jqQcHY0IflPLS+kD568MT84/1qApK52WnnhD7bcHFesmc4r4QzGAmU g3IOTI+epgza4RZhlonc77kW/tKuSsBkbtSu0oMer0ieIAekcyCg7YW4ati7sYR+DmkX a0pQ== X-Gm-Message-State: AOJu0Yy1NX+G9dhbtZJZInB5D+Cqwe7TBoQ0fcNmaXyKFzqNY4NvEXMq W68NoQlsL3cUbqrc5w5AZQ== X-Google-Smtp-Source: AGHT+IFMJzsEvpbSktexSSdFIfR9OaWDnu0zBfHOB7Y/r6iYkYi/TaZpUgTAHm5TMgYN9AvcD7iJ5A== X-Received: by 2002:a05:6e02:603:b0:357:704a:8699 with SMTP id t3-20020a056e02060300b00357704a8699mr3547266ils.8.1700691165100; Wed, 22 Nov 2023 14:12:45 -0800 (PST) Received: from herring.priv ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id em4-20020a0566384da400b0045b4a059a57sm91639jab.44.2023.11.22.14.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 14:12:44 -0800 (PST) Received: (nullmailer pid 2753840 invoked by uid 1000); Wed, 22 Nov 2023 22:12:33 -0000 From: Rob Herring Date: Wed, 22 Nov 2023 15:12:34 -0700 Subject: [PATCH v2 3/4] riscv: dts: Always enable extra W=1 warnings MIME-Version: 1.0 Message-Id: <20231122-dtc-warnings-v2-3-bd4087325392@kernel.org> References: <20231122-dtc-warnings-v2-0-bd4087325392@kernel.org> In-Reply-To: <20231122-dtc-warnings-v2-0-bd4087325392@kernel.org> To: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Krzysztof Kozlowski , Alim Akhtar , Conor Dooley Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org X-Mailer: b4 0.13-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231122_141246_327423_E8404DF2 X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org As all RISC-V .dts files are W=1 clean, enable the W=1 warnings all the time. Signed-off-by: Rob Herring --- arch/riscv/boot/dts/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile index 72030fd727af..a7b17e0ac8c8 100644 --- a/arch/riscv/boot/dts/Makefile +++ b/arch/riscv/boot/dts/Makefile @@ -1,4 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 + +export KBUILD_EXTRA_WARN_DTC=1 + subdir-y += allwinner subdir-y += canaan subdir-y += microchip From patchwork Wed Nov 22 22:12:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 13465483 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BF8F4C61D97 for ; Wed, 22 Nov 2023 22:13:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NEewq1vx9Q1a7yy+Rar9NTWRSNsBKa2Y1uWuBaDADtY=; b=yURdtHX3GQ2I8H i2imWjI5CzyTdKaG3R+ZHah92HJRF+TN+siFMNo/QEVKw4SRkRwwX8N0RH7PMUgR1xXdXICrDhAz5 9CRsQChNzc60qkMJSs7I8nZeBqF2NS5WwgSDSRjbNrV6Hc8WVFOH16F3WCpCYVxvvCPZjthIGI+6q 0w8KajpN3V6vMLXd7LM8KIub0paparI8qMAWu3frcbDB3lncI3lD4OG8Tld2xpKoodKOGSaaSrKhi VfrfyVRWBXI6WJf2YlUfAW4qANkVwB0WjvW8dYHGdJ6vCY3210mfQMEcRh1lm1PBnBOmU+vRFBx15 /FKmaDNwKOM1kYqyGj9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r5vSh-003Ake-37; Wed, 22 Nov 2023 22:12:47 +0000 Received: from mail-il1-f169.google.com ([209.85.166.169]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r5vSa-003Ahi-0A; Wed, 22 Nov 2023 22:12:41 +0000 Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-35b2144232bso851505ab.3; Wed, 22 Nov 2023 14:12:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700691159; x=1701295959; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oQrmqAZcdIuXmqszFM5kR+KdU7shYUbjsm44jbecVtk=; b=NoW4lMtETEwuHAUrPRR1TPRzADLcEccIC0kaKVhZUeNP3tsvIIKtiJuWuRsQn5OtnS C4X5LEfWNaARkMMtNqlwCDsM4o0fel837a4AatP3hnBcDgjo8VQSCf7+Ywii+vaHmA6L i14k3b1tjyNrS13eLJXb8hKws7elMXWGOCayb7remGNR+EWomsIHuMouvIrXr7z1PBqM ydEWVVblA+Fcn0gSqOQDy9O/nqT8KqWnBrxMqeJ4y8ZwcroVo/pGZvPpGeieFOOqCVk2 IkqZoXsHrzfkB/3xhSCusEy3QTLAvkitAsNcY/v/GyCNjr4pjbHQytanifqoIhPNLKmz MbSw== X-Gm-Message-State: AOJu0Ywr+Lm1+gbX8D5RTm0Uo4ZJ2SY36xwnBl1BI32k/y5N0eqj7led og4DokANlhygkMX+j14Q3Q== X-Google-Smtp-Source: AGHT+IGj21a13xz1WqdS/H6Nqa3rnnJqU98fDkeH4YoBfe8sZRN0UwRgSamoEKVV6rR3nWw7fbCw5w== X-Received: by 2002:a92:c5cb:0:b0:35b:110f:8127 with SMTP id s11-20020a92c5cb000000b0035b110f8127mr3639999ilt.26.1700691159445; Wed, 22 Nov 2023 14:12:39 -0800 (PST) Received: from herring.priv ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id y17-20020a056e02119100b0035b19b773b8sm159259ili.59.2023.11.22.14.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 14:12:38 -0800 (PST) Received: (nullmailer pid 2753842 invoked by uid 1000); Wed, 22 Nov 2023 22:12:33 -0000 From: Rob Herring Date: Wed, 22 Nov 2023 15:12:35 -0700 Subject: [PATCH v2 4/4] arm/arm64: dts: samsung: Always enable extra W=1 warnings MIME-Version: 1.0 Message-Id: <20231122-dtc-warnings-v2-4-bd4087325392@kernel.org> References: <20231122-dtc-warnings-v2-0-bd4087325392@kernel.org> In-Reply-To: <20231122-dtc-warnings-v2-0-bd4087325392@kernel.org> To: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Krzysztof Kozlowski , Alim Akhtar , Conor Dooley Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org X-Mailer: b4 0.13-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231122_141240_086420_4F2D3FFB X-CRM114-Status: GOOD ( 10.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Samsung platforms are clean of W=1 dtc warnings, so enable the warnings by default. This way submitters don't have to remember to run a W=1 build of the .dts files and the grumpiness of the maintainers can be reduced. Signed-off-by: Rob Herring Reviewed-by: Krzysztof Kozlowski --- v2: - Use new variable name --- arch/arm/boot/dts/samsung/Makefile | 3 +++ arch/arm64/boot/dts/exynos/Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/samsung/Makefile b/arch/arm/boot/dts/samsung/Makefile index 7becf36656b1..fffc5c45d441 100644 --- a/arch/arm/boot/dts/samsung/Makefile +++ b/arch/arm/boot/dts/samsung/Makefile @@ -1,4 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 + +KBUILD_EXTRA_WARN_DTC=1 + dtb-$(CONFIG_ARCH_EXYNOS3) += \ exynos3250-artik5-eval.dtb \ exynos3250-monk.dtb \ diff --git a/arch/arm64/boot/dts/exynos/Makefile b/arch/arm64/boot/dts/exynos/Makefile index 6e4ba69268e5..9cb188ef470d 100644 --- a/arch/arm64/boot/dts/exynos/Makefile +++ b/arch/arm64/boot/dts/exynos/Makefile @@ -1,4 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 + +KBUILD_EXTRA_WARN_DTC=1 + dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos5433-tm2.dtb \ exynos5433-tm2e.dtb \