Skip to content

Commit 8654cb8

Browse files
committed
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. Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 89d1231 commit 8654cb8

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎scripts/Makefile.lib‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,17 @@ DTC ?= $(objtree)/scripts/dtc/dtc
280280

281281
# Disable noisy checks by default
282282
ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),)
283-
DTC_FLAGS += -Wno-unit_address_vs_reg
283+
DTC_FLAGS += -Wno-unit_address_vs_reg \
284+
-Wno-simple_bus_reg \
285+
-Wno-unit_address_format \
286+
-Wno-pci_bridge \
287+
-Wno-pci_device_bus_num \
288+
-Wno-pci_device_reg
289+
endif
290+
291+
ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),2)
292+
DTC_FLAGS += -Wnode_name_chars_strict \
293+
-Wproperty_name_chars_strict
284294
endif
285295

286296
# Generate an assembly file to wrap the output of the device tree compiler

‎scripts/dtc/update-dtc-source.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@ This adds the following commits from upstream:
7777
${dtc_log}
7878
EOF
7979
)
80+
8081
git commit -e -v -s -m "${commit_msg}"

0 commit comments

Comments
 (0)