aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2007-07-10 12:54:40 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-11 19:02:13 -0400
commit36e235901f90fb83215be43cbd8f1ca14661ea40 (patch)
tree6a991716468ccf99b83934bfd91e7f4dcdd6c1ec /arch
parent5463d9f0f323123d96989d318ac9c537158ad0a5 (diff)
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: Matthew Wilcox <matthew@wil.cx> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/alpha/Kconfig3
-rw-r--r--arch/arm/Kconfig3
-rw-r--r--arch/ia64/Kconfig6
-rw-r--r--arch/powerpc/Kconfig6
-rw-r--r--arch/ppc/Kconfig6
-rw-r--r--arch/sparc/Kconfig3
-rw-r--r--arch/sparc64/Kconfig6
7 files changed, 25 insertions, 8 deletions
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index 79c6e5a24456..2a85dc33907c 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -327,6 +327,9 @@ config PCI_DOMAINS
327 bool 327 bool
328 default y 328 default y
329 329
330config PCI_SYSCALL
331 def_bool PCI
332
330config ALPHA_CORE_AGP 333config ALPHA_CORE_AGP
331 bool 334 bool
332 depends on ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL 335 depends on ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 50d9f3e4e0f1..482d33f9ce5b 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -531,6 +531,9 @@ config PCI
531 information about which PCI hardware does work under Linux and which 531 information about which PCI hardware does work under Linux and which
532 doesn't. 532 doesn't.
533 533
534config PCI_SYSCALL
535 def_bool PCI
536
534# Select the host bridge type 537# Select the host bridge type
535config PCI_HOST_VIA82C505 538config PCI_HOST_VIA82C505
536 bool 539 bool
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
index de1bff659969..db9ddff95841 100644
--- a/arch/ia64/Kconfig
+++ b/arch/ia64/Kconfig
@@ -520,8 +520,10 @@ config PCI
520 here unless you are using a simulator without PCI support. 520 here unless you are using a simulator without PCI support.
521 521
522config PCI_DOMAINS 522config PCI_DOMAINS
523 bool 523 def_bool PCI
524 default PCI 524
525config PCI_SYSCALL
526 def_bool PCI
525 527
526source "drivers/pci/pcie/Kconfig" 528source "drivers/pci/pcie/Kconfig"
527 529
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 5eaeafd30bdf..6beee32144c0 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -698,8 +698,10 @@ config PCI
698 infrastructure code to support PCI bus devices. 698 infrastructure code to support PCI bus devices.
699 699
700config PCI_DOMAINS 700config PCI_DOMAINS
701 bool 701 def_bool PCI
702 default PCI 702
703config PCI_SYSCALL
704 def_bool PCI
703 705
704config PCI_QSPAN 706config PCI_QSPAN
705 bool "QSpan PCI" 707 bool "QSpan PCI"
diff --git a/arch/ppc/Kconfig b/arch/ppc/Kconfig
index ccce2a4a1522..6bdeeb70b157 100644
--- a/arch/ppc/Kconfig
+++ b/arch/ppc/Kconfig
@@ -1237,8 +1237,10 @@ config PCI
1237 infrastructure code to support PCI bus devices. 1237 infrastructure code to support PCI bus devices.
1238 1238
1239config PCI_DOMAINS 1239config PCI_DOMAINS
1240 bool 1240 def_bool PCI
1241 default PCI 1241
1242config PCI_SYSCALL
1243 def_bool PCI
1242 1244
1243config MPC83xx_PCI2 1245config MPC83xx_PCI2
1244 bool "Support for 2nd PCI host controller" 1246 bool "Support for 2nd PCI host controller"
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index fbcc00c6c06e..8567cc901942 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -210,6 +210,9 @@ config PCI
210 CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC. 210 CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
211 All of these platforms are extremely obscure, so say N if unsure. 211 All of these platforms are extremely obscure, so say N if unsure.
212 212
213config PCI_SYSCALL
214 def_bool PCI
215
213source "drivers/pci/Kconfig" 216source "drivers/pci/Kconfig"
214 217
215endif 218endif
diff --git a/arch/sparc64/Kconfig b/arch/sparc64/Kconfig
index 89a1b469b93d..6566d13db04f 100644
--- a/arch/sparc64/Kconfig
+++ b/arch/sparc64/Kconfig
@@ -320,8 +320,10 @@ config PCI
320 doesn't. 320 doesn't.
321 321
322config PCI_DOMAINS 322config PCI_DOMAINS
323 bool 323 def_bool PCI
324 default PCI 324
325config PCI_SYSCALL
326 def_bool PCI
325 327
326source "drivers/pci/Kconfig" 328source "drivers/pci/Kconfig"
327 329