Changeset 42485


Ignore:
Timestamp:
2014-09-12T08:51:10+02:00 (3 years ago)
Author:
blogic
Message:

atheros: use static keywork for local code

Make PCI IRQ handler and several structures static as suggested by
sparse.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/atheros/patches-3.14/105-ar2315_pci.patch

    r41995 r42485  
    109109+} 
    110110+ 
    111 +struct pci_ops ar231x_pci_ops = { 
     111+static struct pci_ops ar231x_pci_ops = { 
    112112+       .read   = ar231x_pci_read, 
    113113+       .write  = ar231x_pci_write, 
     
    129129+}; 
    130130+ 
    131 +struct pci_controller ar231x_pci_controller = { 
     131+static struct pci_controller ar231x_pci_controller = { 
    132132+       .pci_ops                = &ar231x_pci_ops, 
    133133+       .mem_resource   = &ar231x_mem_resource, 
     
    273273+} 
    274274+ 
    275 +void ar2315_pci_irq(int irq) 
     275+static void ar2315_pci_irq(int irq) 
    276276+{ 
    277277+       if (ar231x_read_reg(AR2315_PCI_INT_STATUS) == AR2315_PCI_ABORT_INT) 
Note: See TracChangeset for help on using the changeset viewer.