]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI: Apply CONFIG_PCI_DEBUG to entire drivers/pci hierarchy
authorJunhao He <hejunhao2@hisilicon.com>
Thu, 4 Feb 2021 11:30:15 +0000 (19:30 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 9 Feb 2021 21:10:20 +0000 (15:10 -0600)
CONFIG_PCI_DEBUG=y adds -DDEBUG to CFLAGS, which enables things like
pr_debug() and dev_dbg() (and hence pci_dbg()).  Previously we added
-DDEBUG for files in drivers/pci/, but not files in subdirectories of
drivers/pci/.

Add -DDEBUG to CFLAGS for all files below drivers/pci/ so CONFIG_PCI_DEBUG
applies to the entire hierarchy.

[bhelgaas: commit log]
Link: https://lore.kernel.org/r/1612438215-33105-1-git-send-email-yangyicong@hisilicon.com
Signed-off-by: Junhao He <hejunhao2@hisilicon.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/Makefile

index 11cc79411e2d6b32f3c1ae7031a2c7600890ecbc..d62c4ac4ae1b3553eec9c582030ebb0b2fcae788 100644 (file)
@@ -36,4 +36,4 @@ obj-$(CONFIG_PCI_ENDPOINT)    += endpoint/
 obj-y                          += controller/
 obj-y                          += switch/
 
-ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
+subdir-ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG