forked from Minki/linux
f9a6c8ad49
The sole non-static function in err.c, pcie_do_recovery(), is only called from: * aer.c (if CONFIG_PCIEAER=y) * dpc.c (if CONFIG_PCIE_DPC=y, which depends on CONFIG_PCIEAER) * edr.c (if CONFIG_PCIE_EDR=y, which depends on CONFIG_PCIE_DPC) Thus, err.c need not be compiled if CONFIG_PCIEAER=n. Also, pci_uevent_ers() and pcie_clear_device_status(), which are called from err.c, can be #ifdef'ed away unless CONFIG_PCIEAER=y. Since x86_64_defconfig doesn't enable CONFIG_PCIEAER, this change may slightly reduce compile time for anyone doing a test build with that config. Link: https://lore.kernel.org/r/98f9041151268c1c035ab64cca320ad86803f64a.1627638184.git.lukas@wunner.de Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
16 lines
439 B
Makefile
16 lines
439 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for PCI Express features and port driver
|
|
|
|
pcieportdrv-y := portdrv_core.o portdrv_pci.o rcec.o
|
|
|
|
obj-$(CONFIG_PCIEPORTBUS) += pcieportdrv.o
|
|
|
|
obj-$(CONFIG_PCIEASPM) += aspm.o
|
|
obj-$(CONFIG_PCIEAER) += aer.o err.o
|
|
obj-$(CONFIG_PCIEAER_INJECT) += aer_inject.o
|
|
obj-$(CONFIG_PCIE_PME) += pme.o
|
|
obj-$(CONFIG_PCIE_DPC) += dpc.o
|
|
obj-$(CONFIG_PCIE_PTM) += ptm.o
|
|
obj-$(CONFIG_PCIE_EDR) += edr.o
|