From: Junhao He Date: Thu, 4 Feb 2021 11:30:15 +0000 (+0800) Subject: PCI: Apply CONFIG_PCI_DEBUG to entire drivers/pci hierarchy X-Git-Tag: v5.12-rc1~37^2~13^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8e9aababe60a12928172b5f018d15de3c2cdf31;p=thirdparty%2Fkernel%2Flinux.git PCI: Apply CONFIG_PCI_DEBUG to entire drivers/pci hierarchy 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 Signed-off-by: Yicong Yang Signed-off-by: Bjorn Helgaas Reviewed-by: Krzysztof WilczyƄski --- diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile index 11cc79411e2d6..d62c4ac4ae1b3 100644 --- a/drivers/pci/Makefile +++ b/drivers/pci/Makefile @@ -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