Author: blogic
Date: 2014-09-12 08:51:10 +0200 (Fri, 12 Sep 2014)
New Revision: 42485

Modified:
   trunk/target/linux/atheros/patches-3.14/105-ar2315_pci.patch
Log:
atheros: use static keywork for local code

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

Signed-off-by: Sergey Ryazanov <[email protected]>

Modified: trunk/target/linux/atheros/patches-3.14/105-ar2315_pci.patch
===================================================================
--- trunk/target/linux/atheros/patches-3.14/105-ar2315_pci.patch        
2014-09-12 06:51:05 UTC (rev 42484)
+++ trunk/target/linux/atheros/patches-3.14/105-ar2315_pci.patch        
2014-09-12 06:51:10 UTC (rev 42485)
@@ -108,7 +108,7 @@
 +      return config_access(devfn, where, size, &value, 1);
 +}
 +
-+struct pci_ops ar231x_pci_ops = {
++static struct pci_ops ar231x_pci_ops = {
 +      .read   = ar231x_pci_read,
 +      .write  = ar231x_pci_write,
 +};
@@ -128,7 +128,7 @@
 +      .flags  = IORESOURCE_IO,
 +};
 +
-+struct pci_controller ar231x_pci_controller = {
++static struct pci_controller ar231x_pci_controller = {
 +      .pci_ops                = &ar231x_pci_ops,
 +      .mem_resource   = &ar231x_mem_resource,
 +      .io_resource    = &ar231x_io_resource,
@@ -272,7 +272,7 @@
 +      ar231x_write_reg(AR2315_PCI_INT_STATUS, AR2315_PCI_EXT_INT);
 +}
 +
-+void ar2315_pci_irq(int irq)
++static void ar2315_pci_irq(int irq)
 +{
 +      if (ar231x_read_reg(AR2315_PCI_INT_STATUS) == AR2315_PCI_ABORT_INT)
 +              pci_abort_irq();
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to