提交 36e23590 编写于 作者: M Matthew Wilcox 提交者: Greg Kroah-Hartman

PCI: Only build PCI syscalls on architectures that want them

The PCI syscalls are built on every architecture except X86, but only
a few have ever hooked them up.  Use a new Kconfig symbol to save a
couple of kB on the architectures that have never used the syscalls.
Tested on x86 and ia64 only.
Signed-off-by: NMatthew Wilcox <matthew@wil.cx>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 5463d9f0
...@@ -327,6 +327,9 @@ config PCI_DOMAINS ...@@ -327,6 +327,9 @@ config PCI_DOMAINS
bool bool
default y default y
config PCI_SYSCALL
def_bool PCI
config ALPHA_CORE_AGP config ALPHA_CORE_AGP
bool bool
depends on ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL depends on ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL
......
...@@ -531,6 +531,9 @@ config PCI ...@@ -531,6 +531,9 @@ config PCI
information about which PCI hardware does work under Linux and which information about which PCI hardware does work under Linux and which
doesn't. doesn't.
config PCI_SYSCALL
def_bool PCI
# Select the host bridge type # Select the host bridge type
config PCI_HOST_VIA82C505 config PCI_HOST_VIA82C505
bool bool
......
...@@ -520,8 +520,10 @@ config PCI ...@@ -520,8 +520,10 @@ config PCI
here unless you are using a simulator without PCI support. here unless you are using a simulator without PCI support.
config PCI_DOMAINS config PCI_DOMAINS
bool def_bool PCI
default PCI
config PCI_SYSCALL
def_bool PCI
source "drivers/pci/pcie/Kconfig" source "drivers/pci/pcie/Kconfig"
......
...@@ -698,8 +698,10 @@ config PCI ...@@ -698,8 +698,10 @@ config PCI
infrastructure code to support PCI bus devices. infrastructure code to support PCI bus devices.
config PCI_DOMAINS config PCI_DOMAINS
bool def_bool PCI
default PCI
config PCI_SYSCALL
def_bool PCI
config PCI_QSPAN config PCI_QSPAN
bool "QSpan PCI" bool "QSpan PCI"
......
...@@ -1237,8 +1237,10 @@ config PCI ...@@ -1237,8 +1237,10 @@ config PCI
infrastructure code to support PCI bus devices. infrastructure code to support PCI bus devices.
config PCI_DOMAINS config PCI_DOMAINS
bool def_bool PCI
default PCI
config PCI_SYSCALL
def_bool PCI
config MPC83xx_PCI2 config MPC83xx_PCI2
bool "Support for 2nd PCI host controller" bool "Support for 2nd PCI host controller"
......
...@@ -210,6 +210,9 @@ config PCI ...@@ -210,6 +210,9 @@ config PCI
CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC. CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
All of these platforms are extremely obscure, so say N if unsure. All of these platforms are extremely obscure, so say N if unsure.
config PCI_SYSCALL
def_bool PCI
source "drivers/pci/Kconfig" source "drivers/pci/Kconfig"
endif endif
......
...@@ -320,8 +320,10 @@ config PCI ...@@ -320,8 +320,10 @@ config PCI
doesn't. doesn't.
config PCI_DOMAINS config PCI_DOMAINS
bool def_bool PCI
default PCI
config PCI_SYSCALL
def_bool PCI
source "drivers/pci/Kconfig" source "drivers/pci/Kconfig"
......
...@@ -41,9 +41,7 @@ obj-$(CONFIG_ACPI) += pci-acpi.o ...@@ -41,9 +41,7 @@ obj-$(CONFIG_ACPI) += pci-acpi.o
# Cardbus & CompactPCI use setup-bus # Cardbus & CompactPCI use setup-bus
obj-$(CONFIG_HOTPLUG) += setup-bus.o obj-$(CONFIG_HOTPLUG) += setup-bus.o
ifndef CONFIG_X86 obj-$(CONFIG_PCI_SYSCALL) += syscall.o
obj-y += syscall.o
endif
ifeq ($(CONFIG_PCI_DEBUG),y) ifeq ($(CONFIG_PCI_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG EXTRA_CFLAGS += -DDEBUG
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册