drivers/net/sb1000.c: make some variables static
PATCH 1/1 drivers/net/sb1000.c: make some variables static
This patch makes some needlessly global variables static.
Signed-off-by Adrian Bunk <[email protected]>
---
drivers/net/sb1000.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
drivers/net/sb1000.c renamed from drivers/net/sb1000.c.old +6 -6
@@ -57,9 +57,9 @@#include <asm/uaccess.h> #ifdef SB1000_DEBUG -int sb1000_debug =SB1000_DEBUG ; +static int sb1000_debug =SB1000_DEBUG ;#else -int sb1000_debug =1 ; +static int sb1000_debug =1 ;#endif static const int SB1000_IO_EXTENT =8 ;
@@ -247,12 +247,12 @@ .remove = sb1000_remove_one, }; - +/* * SB1000 hardware routines to be used during open/configuration phases */ -const int TimeOutJiffies = (875 *HZ ) /100 ; +static const int TimeOutJiffies = (875 *HZ ) /100 ;static inline void nicedelay (unsigned long usecs) {
@@ -359,11 +359,11 @@return 0 ; } - +/* * SB1000 hardware routines to be used during frame rx interrupt */ -const int Sb1000TimeOutJiffies =7 *HZ ; +static const int Sb1000TimeOutJiffies =7 *HZ ;/* Card Wait For Ready (to be used during frame rx) */ static inline int
this patch eats formfeeds
PATCH 1/1 drivers/net/sb1000.c: make some variables static
Quoted 1 line · Jeff Garzik
this patch eats formfeeds
Sorry, updated patch:
<-- snip -->
This patch makes some needlessly global variables static.
Signed-off-by Adrian Bunk <[email protected]>
---
drivers/net/sb1000.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/sb1000.c renamed from drivers/net/sb1000.c.old +4 -4
@@ -57,9 +57,9 @@#include <asm/uaccess.h> #ifdef SB1000_DEBUG -int sb1000_debug =SB1000_DEBUG ; +static int sb1000_debug =SB1000_DEBUG ;#else -int sb1000_debug =1 ; +static int sb1000_debug =1 ;#endif static const int SB1000_IO_EXTENT =8 ;
@@ -252,7 +252,7 @@* SB1000 hardware routines to be used during open/configuration phases */ -const int TimeOutJiffies = (875 *HZ ) /100 ; +static const int TimeOutJiffies = (875 *HZ ) /100 ;static inline void nicedelay (unsigned long usecs) {
@@ -363,7 +363,7 @@/* * SB1000 hardware routines to be used during frame rx interrupt */ -const int Sb1000TimeOutJiffies =7 *HZ ; +static const int Sb1000TimeOutJiffies =7 *HZ ;/* Card Wait For Ready (to be used during frame rx) */ static inline int