Skip to contentSkip to conversation

dtc: turn off dtc unit address warnings by default

PATCH New Rob Herring 1 participant 1 message Mar 31, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dtc: turn off dtc unit address warnings by default

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.

---
Michal, I plan to apply this with the corresponding dtc update.

 scripts/Makefile.lib | 5 +++++
 1 file changed, 5 insertions(+)
scripts/Makefile.lib +5 -0
index ddf83d0..ed1b7c4 100644
@@ -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=						\
Signature · 1 line
2.5.0