Skip to content

Commit

Permalink
dtc: update warning settings for new bus and node/property name checks
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
robherring committed Mar 29, 2017
1 parent 89d1231 commit 8654cb8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/Makefile.lib
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,17 @@ DTC ?= $(objtree)/scripts/dtc/dtc

# 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
Expand Down
1 change: 1 addition & 0 deletions scripts/dtc/update-dtc-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ This adds the following commits from upstream:
${dtc_log}
EOF
)

git commit -e -v -s -m "${commit_msg}"

0 comments on commit 8654cb8

Please sign in to comment.