]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - scripts/Makefile.lib
dtc: update warning settings for new bus and node/property name checks
[mirror_ubuntu-bionic-kernel.git] / scripts / Makefile.lib
index 0a07f9014944ed92a8e2e42983ae43be60b3e471..8066b6185d1ec2eedbfc285e48792fa86e14eec6 100644 (file)
@@ -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