linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] arch/i386/pci/: make some code static
@ 2004-12-12  2:10 Adrian Bunk
  2004-12-16 23:56 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2004-12-12  2:10 UTC (permalink / raw)
  To: greg; +Cc: linux-kernel

The patch below makes some needlessly global code static.


diffstat output:
 arch/i386/pci/fixup.c |    4 ++--
 arch/i386/pci/irq.c   |    4 +++-
 arch/i386/pci/pci.h   |    2 --
 3 files changed, 5 insertions(+), 5 deletions(-)


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc2-mm4-full/arch/i386/pci/fixup.c.old	2004-12-12 00:04:24.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/arch/i386/pci/fixup.c	2004-12-12 00:04:46.000000000 +0100
@@ -282,7 +282,7 @@
 	return raw_pci_ops->write(0, bus->number, devfn, where, size, value);
 }
 
-struct pci_ops quirk_pcie_aspm_ops = {
+static struct pci_ops quirk_pcie_aspm_ops = {
 	.read = quirk_pcie_aspm_read,
 	.write = quirk_pcie_aspm_write,
 };
@@ -295,7 +295,7 @@
  * the root port in an array for fast indexing. Replace the bus ops
  * with the modified one.
  */
-void pcie_rootport_aspm_quirk(struct pci_dev *pdev)
+static void pcie_rootport_aspm_quirk(struct pci_dev *pdev)
 {
 	int cap_base, i;
 	struct pci_bus  *pbus;
--- linux-2.6.10-rc2-mm4-full/arch/i386/pci/pci.h.old	2004-12-12 00:05:01.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/arch/i386/pci/pci.h	2004-12-12 00:05:09.000000000 +0100
@@ -71,6 +71,4 @@
 extern int pcibios_scanned;
 extern spinlock_t pci_config_lock;
 
-int pirq_enable_irq(struct pci_dev *dev);
-
 extern int (*pcibios_enable_irq)(struct pci_dev *dev);
--- linux-2.6.10-rc2-mm4-full/arch/i386/pci/irq.c.old	2004-12-12 00:05:16.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/arch/i386/pci/irq.c	2004-12-12 00:11:24.000000000 +0100
@@ -29,6 +29,8 @@
 
 static struct irq_routing_table *pirq_table;
 
+static int pirq_enable_irq(struct pci_dev *dev);
+
 /*
  * Never use: 0, 1, 2 (timer, keyboard, and cascade)
  * Avoid using: 13, 14 and 15 (FP error and IDE).
@@ -1019,7 +1021,7 @@
 		pirq_penalize_isa_irq(irq);
 }
 
-int pirq_enable_irq(struct pci_dev *dev)
+static int pirq_enable_irq(struct pci_dev *dev)
 {
 	u8 pin;
 	extern int interrupt_line_quirk;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6 patch] arch/i386/pci/: make some code static
  2004-12-12  2:10 [2.6 patch] arch/i386/pci/: make some code static Adrian Bunk
@ 2004-12-16 23:56 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-12-16 23:56 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

On Sun, Dec 12, 2004 at 03:10:58AM +0100, Adrian Bunk wrote:
> The patch below makes some needlessly global code static.
> 
> 
> diffstat output:
>  arch/i386/pci/fixup.c |    4 ++--
>  arch/i386/pci/irq.c   |    4 +++-
>  arch/i386/pci/pci.h   |    2 --
>  3 files changed, 5 insertions(+), 5 deletions(-)

Applied, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-16 23:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-12  2:10 [2.6 patch] arch/i386/pci/: make some code static Adrian Bunk
2004-12-16 23:56 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).