Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36e23590 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Greg Kroah-Hartman
Browse files

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: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5463d9f0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -327,6 +327,9 @@ config PCI_DOMAINS
	bool
	default y

config PCI_SYSCALL
	def_bool PCI

config ALPHA_CORE_AGP
	bool
	depends on ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL
+3 −0
Original line number Diff line number Diff line
@@ -531,6 +531,9 @@ config PCI
	  information about which PCI hardware does work under Linux and which
	  doesn't.

config PCI_SYSCALL
	def_bool PCI

# Select the host bridge type
config PCI_HOST_VIA82C505
	bool
+4 −2
Original line number Diff line number Diff line
@@ -520,8 +520,10 @@ config PCI
	  here unless you are using a simulator without PCI support.

config PCI_DOMAINS
	bool
	default PCI
	def_bool PCI

config PCI_SYSCALL
	def_bool PCI

source "drivers/pci/pcie/Kconfig"

+4 −2
Original line number Diff line number Diff line
@@ -698,8 +698,10 @@ config PCI
	  infrastructure code to support PCI bus devices.

config PCI_DOMAINS
	bool
	default PCI
	def_bool PCI

config PCI_SYSCALL
	def_bool PCI

config PCI_QSPAN
	bool "QSpan PCI"
+4 −2
Original line number Diff line number Diff line
@@ -1237,8 +1237,10 @@ config PCI
	  infrastructure code to support PCI bus devices.

config PCI_DOMAINS
	bool
	default PCI
	def_bool PCI

config PCI_SYSCALL
	def_bool PCI

config MPC83xx_PCI2
	bool "Support for 2nd PCI host controller"
Loading