Skip to content

Commit 6343e44

Browse files
robherringRobertCNelson
authored andcommitted
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. Signed-off-by: Rob Herring <[email protected]> Cc: Michal Marek <[email protected]> Cc: [email protected]
1 parent f065d17 commit 6343e44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/Makefile.lib

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \
263263
# DTC
264264
# ---------------------------------------------------------------------------
265265

266+
# Disable noisy checks by default
267+
ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),)
268+
DTC_FLAGS += -Wno-unit_address_vs_reg
269+
endif
270+
266271
# Generate an assembly file to wrap the output of the device tree compiler
267272
quiet_cmd_dt_S_dtb= DTB $@
268273
cmd_dt_S_dtb= \

0 commit comments

Comments
 (0)