From e7448a56d1db80597c0cfac9cf2a4dda6d90b4e6 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Tue, 21 Mar 2017 09:14:20 -0500 Subject: [PATCH] UPSTREAM: dtc: update warning settings for new bus and node/property name checks dtc gained new warnings checking PCI and simple buses, unit address formatting, and stricter node and property name checking. Disable the new dtc warnings by default as there are 1000s. As before, warnings are enabled with W=1 or W=2. The strict node and property name checks are a bit subjective, so they are only enabled for W=2. Change-Id: I1928d0fcb0a6fb82ec4a68d092121809cd23c1a0 Signed-off-by: Rob Herring Signed-off-by: Tao Huang (cherry picked from commit 8654cb8d0371de3f119c657531abf2ee4423cb44) --- scripts/Makefile.lib | 12 +++++++++++- scripts/dtc/update-dtc-source.sh | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 7ce1c21879ad..cc1c7d289ef0 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -271,7 +271,17 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \ # Disable noisy checks by default ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),) -DTC_FLAGS += -Wno-unit_address_vs_reg +DTC_FLAGS += -Wno-unit_address_vs_reg \ + -Wno-simple_bus_reg \ + -Wno-unit_address_format \ + -Wno-pci_bridge \ + -Wno-pci_device_bus_num \ + -Wno-pci_device_reg +endif + +ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),2) +DTC_FLAGS += -Wnode_name_chars_strict \ + -Wproperty_name_chars_strict endif # Generate an assembly file to wrap the output of the device tree compiler diff --git a/scripts/dtc/update-dtc-source.sh b/scripts/dtc/update-dtc-source.sh index c92e6bd9458d..b8ebcc6722d2 100755 --- a/scripts/dtc/update-dtc-source.sh +++ b/scripts/dtc/update-dtc-source.sh @@ -77,4 +77,5 @@ This adds the following commits from upstream: ${dtc_log} EOF ) + git commit -e -v -s -m "${commit_msg}"