]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PCI: Only build PCI syscalls on architectures that want them
authorMatthew Wilcox <matthew@wil.cx>
Tue, 10 Jul 2007 16:54:40 +0000 (10:54 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 Jul 2007 23:02:13 +0000 (16:02 -0700)
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: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/alpha/Kconfig
arch/arm/Kconfig
arch/ia64/Kconfig
arch/powerpc/Kconfig
arch/ppc/Kconfig
arch/sparc/Kconfig
arch/sparc64/Kconfig
drivers/pci/Makefile

index 79c6e5a2445652679b4aafa5d647e06248fe27b2..2a85dc33907c2c66f09c3e3ce61e96ef19e23d3a 100644 (file)
@@ -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
index 50d9f3e4e0f1ad315eb9a04e1e3e9aa5299d6fa5..482d33f9ce5bc3ba675e20d88ed51acf055a837b 100644 (file)
@@ -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
index de1bff6599690c89d9f4f290edcb167e70d79b82..db9ddff958416bd8e189cb0006f60a5fd9cbe4ce 100644 (file)
@@ -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"
 
index 5eaeafd30bdfe2710b7e35f325fee9692b751d44..6beee32144c02e45456c5e8c037e8630b1b6f7bb 100644 (file)
@@ -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"
index ccce2a4a1522f574b49dacf261108a4b43068f09..6bdeeb70b157856a00b6ce22c397a74abeb0d803 100644 (file)
@@ -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"
index fbcc00c6c06ea6dff4c0706ac86a5806b1b63b4e..8567cc901942be09a40178388919afea7fdc1d4c 100644 (file)
@@ -210,6 +210,9 @@ config PCI
          CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
          All of these platforms are extremely obscure, so say N if unsure.
 
+config PCI_SYSCALL
+       def_bool PCI
+
 source "drivers/pci/Kconfig"
 
 endif
index 89a1b469b93df149b21c1c65c5d1723d36e97e09..6566d13db04fec3c5417cde60c0295319f405c9f 100644 (file)
@@ -320,8 +320,10 @@ config PCI
          doesn't.
 
 config PCI_DOMAINS
-       bool
-       default PCI
+       def_bool PCI
+
+config PCI_SYSCALL
+       def_bool PCI
 
 source "drivers/pci/Kconfig"
 
index e3beb784406f69019511cebf7d8cd33542ccb99c..006054a409958a5f7617f9b1713a0eced9381d68 100644 (file)
@@ -41,9 +41,7 @@ obj-$(CONFIG_ACPI)    += pci-acpi.o
 # Cardbus & CompactPCI use setup-bus
 obj-$(CONFIG_HOTPLUG) += setup-bus.o
 
-ifndef CONFIG_X86
-obj-y += syscall.o
-endif
+obj-$(CONFIG_PCI_SYSCALL) += syscall.o
 
 ifeq ($(CONFIG_PCI_DEBUG),y)
 EXTRA_CFLAGS += -DDEBUG