]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dtc: turn off dtc unit address warnings by default
authorRob Herring <robh@kernel.org>
Thu, 24 Mar 2016 15:52:42 +0000 (10:52 -0500)
committerRob Herring <robh@kernel.org>
Thu, 31 Mar 2016 16:44:16 +0000 (11:44 -0500)
The newly added dtc warning to check DT unit-address without reg
property and vice-versa generates lots of warnings. Turn off the check
unless building with W=1 or W=2.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Michal Marek <mmarek@suse.com>
Cc: linux-kbuild@vger.kernel.org
scripts/Makefile.lib

index ddf83d0181e73d30fb86f68c0fa0a3f888335c0c..ed1b7c4fb674a92c0c566a47796d013abd1c5275 100644 (file)
@@ -277,6 +277,11 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \
 # ---------------------------------------------------------------------------
 DTC ?= $(objtree)/scripts/dtc/dtc
 
+# Disable noisy checks by default
+ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),)
+DTC_FLAGS += -Wno-unit_address_vs_reg
+endif
+
 # Generate an assembly file to wrap the output of the device tree compiler
 quiet_cmd_dt_S_dtb= DTB     $@
 cmd_dt_S_dtb=                                          \