[MIPS] Namespace clean-up in arch/mips/pci/pci.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Tuesday, July 15, 2008 - 5:59 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d58eaa...
Commit:     d58eaab5a01b9cf1819ec57271ac214a39bf6278
Parent:     1ea6428cbdbb0fd1a6e7e8c3044253eab9aff4c7
Author:     Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
AuthorDate: Wed Jun 18 10:18:20 2008 +0300
Committer:  Ralf Baechle <ralf@linux-mips.org>
CommitDate: Tue Jul 15 18:44:31 2008 +0100

    [MIPS] Namespace clean-up in arch/mips/pci/pci.c
    
    The following symbols
    
    	hose_head
    	hose_tail
    
    are needlessly defined global in arch/mips/pci/pci.c, and
    this patch makes them static.
    
    The variable pci_isa_hose is not used, and is removed by
    this patch.
    
    Spotted by namespacecheck. Tested by booting a Malta 4Kc
    board up to the shell prompt.
    
    Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
    Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
 arch/mips/pci/pci.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index 358ad62..d7d6cb0 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -29,8 +29,7 @@ unsigned int pci_probe = PCI_ASSIGN_ALL_BUSSES;
  * The PCI controller list.
  */
 
-struct pci_controller *hose_head, **hose_tail = &hose_head;
-struct pci_controller *pci_isa_hose;
+static struct pci_controller *hose_head, **hose_tail = &hose_head;
 
 unsigned long PCIBIOS_MIN_IO	= 0x0000;
 unsigned long PCIBIOS_MIN_MEM	= 0;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[MIPS] Namespace clean-up in arch/mips/pci/pci.c, Linux Kernel Mailing ..., (Tue Jul 15, 5:59 pm)