Changeset 22425


Ignore:
Timestamp:
2010-07-31T12:06:05+02:00 (8 years ago)
Author:
hauke
Message:

brcm47xx: some checkpatch fixes

Location:
trunk/target/linux/brcm47xx
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/patches-2.6.34/210-b44_phy_fix.patch

    r22296 r22425  
    6868 } 
    6969+ 
    70 +static inline void b44_bcm47xx_workarounds(struct b44 *bp)  
    71 +{  
     70+static inline void b44_bcm47xx_workarounds(struct b44 *bp) 
     71+{ 
    7272+} 
    7373 #endif 
  • trunk/target/linux/brcm47xx/patches-2.6.34/301-kmod-fuse-dcache-bug-r4k.patch

    r22296 r22425  
    1919 { 
    2020        struct flush_cache_page_args args; 
    21 @@ -1469,3 +1469,10 @@ void __cpuinit r4k_cache_init(void) 
     21@@ -1469,3 +1469,11 @@ void __cpuinit r4k_cache_init(void) 
    2222        coherency_setup(); 
    2323 #endif 
    2424 } 
    2525+ 
    26 +// fuse package DCACHE BUG patch exports 
     26+/* fuse package DCACHE BUG patch exports */ 
    2727+void (*fuse_flush_cache_all)(void) = r4k___flush_cache_all; 
     28+EXPORT_SYMBOL(fuse_flush_cache_all); 
     29+ 
    2830+void (*fuse_flush_cache_page)(struct vm_area_struct *vma, unsigned long page, 
    29 +        unsigned long pfn) = r4k_flush_cache_page; 
     31+       unsigned long pfn) = r4k_flush_cache_page; 
    3032+EXPORT_SYMBOL(fuse_flush_cache_page); 
    31 +EXPORT_SYMBOL(fuse_flush_cache_all); 
  • trunk/target/linux/brcm47xx/patches-2.6.34/400-arch-bcm47xx.patch

    r22385 r22425  
    22+++ b/arch/mips/bcm47xx/nvram.c 
    33@@ -92,3 +92,30 @@ int nvram_getenv(char *name, char *val,  
    4         return 1; 
     4        return -9; 
    55 } 
    66 EXPORT_SYMBOL(nvram_getenv); 
     
    3434--- a/arch/mips/bcm47xx/setup.c 
    3535+++ b/arch/mips/bcm47xx/setup.c 
    36 @@ -236,3 +236,20 @@ void __init plat_mem_setup(void) 
     36@@ -238,3 +238,20 @@ void __init plat_mem_setup(void) 
    3737        _machine_halt = bcm47xx_machine_halt; 
    3838        pm_power_off = bcm47xx_machine_halt; 
  • trunk/target/linux/brcm47xx/patches-2.6.34/700-ssb-gigabit-ethernet-driver.patch

    r21543 r22425  
    112112+               if (tp->tg3_flags3 & TG3_FLG3_ROBOSWITCH) { 
    113113+                       current_link_up = 1; 
    114 +                       current_speed = SPEED_1000; //FIXME 
     114+                       current_speed = SPEED_1000; /* FIXME */ 
    115115+                       current_duplex = DUPLEX_FULL; 
    116116+                       tp->link_config.active_speed = current_speed; 
  • trunk/target/linux/brcm47xx/patches-2.6.34/920-cache-wround.patch

    r21543 r22425  
    11--- a/arch/mips/include/asm/r4kcache.h 
    22+++ b/arch/mips/include/asm/r4kcache.h 
    3 @@ -20,10 +20,25 @@ 
     3@@ -20,10 +20,28 @@ 
    44 #ifdef CONFIG_BCM47XX 
    55 #include <asm/paccess.h> 
     
    88+#define BCM4710_DUMMY_RREG() bcm4710_dummy_rreg() 
    99+ 
    10 +static inline unsigned long bcm4710_dummy_rreg(void) { 
    11 +      return (*(volatile unsigned long *)(KSEG1ADDR(SSB_ENUM_BASE))); 
     10+static inline unsigned long bcm4710_dummy_rreg(void) 
     11+{ 
     12+      return *(volatile unsigned long *)(KSEG1ADDR(SSB_ENUM_BASE)); 
    1213+} 
    1314+ 
    14 +#define BCM4710_FILL_TLB(addr) bcm4710_fill_tlb((void*)(addr)) 
     15+#define BCM4710_FILL_TLB(addr) bcm4710_fill_tlb((void *)(addr)) 
    1516+ 
    16 +static inline unsigned long bcm4710_fill_tlb(void *addr) { 
    17 +      return (*(unsigned long *)addr); 
     17+static inline unsigned long bcm4710_fill_tlb(void *addr) 
     18+{ 
     19+      return *(unsigned long *)addr; 
    1820+} 
    1921+ 
    20 +#define BCM4710_PROTECTED_FILL_TLB(addr) bcm4710_protected_fill_tlb((void*)(addr)) 
     22+#define BCM4710_PROTECTED_FILL_TLB(addr) bcm4710_protected_fill_tlb((void *)(addr)) 
    2123+ 
    22 +static inline void bcm4710_protected_fill_tlb(void *addr) { 
     24+static inline void bcm4710_protected_fill_tlb(void *addr) 
     25+{ 
    2326+      unsigned long x; 
    2427+      get_dbe(x, (unsigned long *)addr);; 
  • trunk/target/linux/brcm47xx/patches-2.6.34/950-sbb-sysfs-files.patch

    r21119 r22425  
    99+attrib##_show(struct device *dev, struct device_attribute *attr, char *buf) \ 
    1010+{                                                                                                                              \ 
    11 +       return sprintf (buf, format_string, dev_to_ssb_dev(dev)->field);                \ 
     11+       return sprintf(buf, format_string, dev_to_ssb_dev(dev)->field);         \ 
    1212+} 
    1313+ 
     
    2020+name_show(struct device *dev, struct device_attribute *attr, char *buf) 
    2121+{ 
    22 +       return sprintf (buf, "%s\n", ssb_core_name(dev_to_ssb_dev(dev)->id.coreid)); 
     22+       return sprintf(buf, "%s\n", ssb_core_name(dev_to_ssb_dev(dev)->id.coreid)); 
    2323+} 
    2424+ 
  • trunk/target/linux/brcm47xx/patches-2.6.35/210-b44_phy_fix.patch

    r22296 r22425  
    6868 } 
    6969+ 
    70 +static inline void b44_bcm47xx_workarounds(struct b44 *bp)  
    71 +{  
     70+static inline void b44_bcm47xx_workarounds(struct b44 *bp) 
     71+{ 
    7272+} 
    7373 #endif 
  • trunk/target/linux/brcm47xx/patches-2.6.35/301-kmod-fuse-dcache-bug-r4k.patch

    r22296 r22425  
    1919 { 
    2020        struct flush_cache_page_args args; 
    21 @@ -1469,3 +1469,10 @@ void __cpuinit r4k_cache_init(void) 
     21@@ -1469,3 +1469,11 @@ void __cpuinit r4k_cache_init(void) 
    2222        coherency_setup(); 
    2323 #endif 
    2424 } 
    2525+ 
    26 +// fuse package DCACHE BUG patch exports 
     26+/* fuse package DCACHE BUG patch exports */ 
    2727+void (*fuse_flush_cache_all)(void) = r4k___flush_cache_all; 
     28+EXPORT_SYMBOL(fuse_flush_cache_all); 
     29+ 
    2830+void (*fuse_flush_cache_page)(struct vm_area_struct *vma, unsigned long page, 
    29 +        unsigned long pfn) = r4k_flush_cache_page; 
     31+       unsigned long pfn) = r4k_flush_cache_page; 
    3032+EXPORT_SYMBOL(fuse_flush_cache_page); 
    31 +EXPORT_SYMBOL(fuse_flush_cache_all); 
  • trunk/target/linux/brcm47xx/patches-2.6.35/400-arch-bcm47xx.patch

    r22385 r22425  
    22+++ b/arch/mips/bcm47xx/nvram.c 
    33@@ -92,3 +92,30 @@ int nvram_getenv(char *name, char *val,  
    4         return 1; 
     4        return -1; 
    55 } 
    66 EXPORT_SYMBOL(nvram_getenv); 
     
    2121+       end[0] = end[1] = '\0'; 
    2222+       for (; *var; var = value + strlen(value) + 1) { 
    23 +               if (!(eq = strchr(var, '='))) 
     23+               eq = strchr(var, '='); 
     24+               if (!eq) 
    2425+                       break; 
    2526+               value = eq + 1; 
     
    3031+       return NULL; 
    3132+} 
    32 + 
    3333+EXPORT_SYMBOL(nvram_get); 
    3434--- a/arch/mips/bcm47xx/setup.c 
    3535+++ b/arch/mips/bcm47xx/setup.c 
    36 @@ -236,3 +236,20 @@ void __init plat_mem_setup(void) 
     36@@ -238,3 +238,20 @@ void __init plat_mem_setup(void) 
    3737        _machine_halt = bcm47xx_machine_halt; 
    3838        pm_power_off = bcm47xx_machine_halt; 
  • trunk/target/linux/brcm47xx/patches-2.6.35/700-ssb-gigabit-ethernet-driver.patch

    r22296 r22425  
    112112+               if (tp->tg3_flags3 & TG3_FLG3_ROBOSWITCH) { 
    113113+                       current_link_up = 1; 
    114 +                       current_speed = SPEED_1000; //FIXME 
     114+                       current_speed = SPEED_1000; /* FIXME */ 
    115115+                       current_duplex = DUPLEX_FULL; 
    116116+                       tp->link_config.active_speed = current_speed; 
  • trunk/target/linux/brcm47xx/patches-2.6.35/920-cache-wround.patch

    r21707 r22425  
    11--- a/arch/mips/include/asm/r4kcache.h 
    22+++ b/arch/mips/include/asm/r4kcache.h 
    3 @@ -20,10 +20,25 @@ 
     3@@ -20,10 +20,28 @@ 
    44 #ifdef CONFIG_BCM47XX 
    55 #include <asm/paccess.h> 
     
    88+#define BCM4710_DUMMY_RREG() bcm4710_dummy_rreg() 
    99+ 
    10 +static inline unsigned long bcm4710_dummy_rreg(void) { 
    11 +      return (*(volatile unsigned long *)(KSEG1ADDR(SSB_ENUM_BASE))); 
     10+static inline unsigned long bcm4710_dummy_rreg(void) 
     11+{ 
     12+      return *(volatile unsigned long *)(KSEG1ADDR(SSB_ENUM_BASE)); 
    1213+} 
    1314+ 
    14 +#define BCM4710_FILL_TLB(addr) bcm4710_fill_tlb((void*)(addr)) 
     15+#define BCM4710_FILL_TLB(addr) bcm4710_fill_tlb((void *)(addr)) 
    1516+ 
    16 +static inline unsigned long bcm4710_fill_tlb(void *addr) { 
    17 +      return (*(unsigned long *)addr); 
     17+static inline unsigned long bcm4710_fill_tlb(void *addr) 
     18+{ 
     19+      return *(unsigned long *)addr; 
    1820+} 
    1921+ 
    20 +#define BCM4710_PROTECTED_FILL_TLB(addr) bcm4710_protected_fill_tlb((void*)(addr)) 
     22+#define BCM4710_PROTECTED_FILL_TLB(addr) bcm4710_protected_fill_tlb((void *)(addr)) 
    2123+ 
    22 +static inline void bcm4710_protected_fill_tlb(void *addr) { 
     24+static inline void bcm4710_protected_fill_tlb(void *addr) 
     25+{ 
    2326+      unsigned long x; 
    2427+      get_dbe(x, (unsigned long *)addr);; 
  • trunk/target/linux/brcm47xx/patches-2.6.35/950-sbb-sysfs-files.patch

    r21707 r22425  
    99+attrib##_show(struct device *dev, struct device_attribute *attr, char *buf) \ 
    1010+{                                                                                                                              \ 
    11 +       return sprintf (buf, format_string, dev_to_ssb_dev(dev)->field);                \ 
     11+       return sprintf(buf, format_string, dev_to_ssb_dev(dev)->field);         \ 
    1212+} 
    1313+ 
     
    2020+name_show(struct device *dev, struct device_attribute *attr, char *buf) 
    2121+{ 
    22 +       return sprintf (buf, "%s\n", ssb_core_name(dev_to_ssb_dev(dev)->id.coreid)); 
     22+       return sprintf(buf, "%s\n", ssb_core_name(dev_to_ssb_dev(dev)->id.coreid)); 
    2323+} 
    2424+ 
Note: See TracChangeset for help on using the changeset viewer.