X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=scripts%2FMakefile.extrawarn;h=7ed520f55503da14ad75d00563f8790da7c10780;hb=8587839f19db078e5ba304a6e635e1900efc8e06;hp=90dc149df3d9a5b625595b5177c8912309666789;hpb=d09ec7f81650425140776995fc9752189ddf7956;p=oweals%2Fu-boot.git diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 90dc149df3..7ed520f555 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 # ========================================================================== # # make W=... settings @@ -9,9 +10,6 @@ # $(call cc-option, -W...) handles gcc -W.. options which # are not supported by all versions of the compiler # ========================================================================== -# -# SPDX-License-Identifier: GPL-2.0 -# ifeq ("$(origin W)", "command line") export KBUILD_ENABLE_EXTRA_GCC_CHECKS := $(W) @@ -58,8 +56,8 @@ endif KBUILD_CFLAGS += $(warning) -dtc-warning-2 += $(call dtc-option,-Wnode_name_chars_strict) -dtc-warning-2 += $(call dtc-option,-Wproperty_name_chars_strict) +dtc-warning-2 += -Wnode_name_chars_strict +dtc-warning-2 += -Wproperty_name_chars_strict dtc-warning := $(dtc-warning-$(findstring 1, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) dtc-warning += $(dtc-warning-$(findstring 2, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) @@ -70,11 +68,11 @@ DTC_FLAGS += $(dtc-warning) else # Disable noisy checks by default -DTC_FLAGS += $(call dtc-option,-Wno-unit_address_vs_reg) -DTC_FLAGS += $(call dtc-option,-Wno-simple_bus_reg) -DTC_FLAGS += $(call dtc-option,-Wno-unit_address_format) -DTC_FLAGS += $(call dtc-option,-Wno-pci_bridge) -DTC_FLAGS += $(call dtc-option,-Wno-pci_device_bus_num) -DTC_FLAGS += $(call dtc-option,-Wno-pci_device_reg) +DTC_FLAGS += -Wno-unit_address_vs_reg +DTC_FLAGS += -Wno-simple_bus_reg +DTC_FLAGS += -Wno-unit_address_format +DTC_FLAGS += -Wno-pci_bridge +DTC_FLAGS += -Wno-pci_device_bus_num +DTC_FLAGS += -Wno-pci_device_reg endif