x86/PCI: Replace deprecated EXTRA_CFLAGS with ccflags-y
authorKrzysztof Wilczynski <kw@linux.com>
Mon, 19 Aug 2019 06:05:32 +0000 (08:05 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 21 Nov 2019 13:49:27 +0000 (07:49 -0600)
Update arch/x86/pci/Makefile replacing the deprecated EXTRA_CFLAGS with the
ccflags-y matching recommendation per section 3.7 of
Documentation/kbuild/makefiles.txt.

Link: https://lore.kernel.org/r/20190819060532.17093-1-kw@linux.com
Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/pci/Makefile

index c806b57d3f22f94fa74fb01469768ed6a15f931f..48bcada5cabe527f6af2b6ec6e5a5a42e4556757 100644 (file)
@@ -24,6 +24,4 @@ obj-y                         += bus_numa.o
 obj-$(CONFIG_AMD_NB)           += amd_bus.o
 obj-$(CONFIG_PCI_CNB20LE_QUIRK)        += broadcom_bus.o
 
-ifeq ($(CONFIG_PCI_DEBUG),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_PCI_DEBUG)    += -DDEBUG