mirror of https://gitee.com/openkylin/linux.git
staging: rtl8192u: make in r8180_93cx6.c some local functions static
Make some local functions (eprom_cs, eprom_ck_cycle, eprom_w, eprom_r and eprom_send_bits_string) static Fix the following sparse warnings in r8180_93cx6.c drivers/staging/rtl8192u/r8180_93cx6.c:23:6: warning: symbol 'eprom_cs' was not declared. Should it be static? drivers/staging/rtl8192u/r8180_93cx6.c:40:6: warning: symbol 'eprom_ck_cycle' was not declared. Should it be static? drivers/staging/rtl8192u/r8180_93cx6.c:56:6: warning: symbol 'eprom_w' was not declared. Should it be static? drivers/staging/rtl8192u/r8180_93cx6.c:71:7: warning: symbol 'eprom_r' was not declared. Should it be static? drivers/staging/rtl8192u/r8180_93cx6.c:85:6: warning: symbol 'eprom_send_bits_string' was not declared. Should it be static? Signed-off-by: Ana Rey <anarey@gmail.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
This commit is contained in:
parent
f4c6074aa6
commit
f6bd19e0ae
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include "r8180_93cx6.h"
|
||||
|
||||
void eprom_cs(struct net_device *dev, short bit)
|
||||
static void eprom_cs(struct net_device *dev, short bit)
|
||||
{
|
||||
u8 cmdreg;
|
||||
|
||||
|
@ -37,7 +37,7 @@ void eprom_cs(struct net_device *dev, short bit)
|
|||
}
|
||||
|
||||
|
||||
void eprom_ck_cycle(struct net_device *dev)
|
||||
static void eprom_ck_cycle(struct net_device *dev)
|
||||
{
|
||||
u8 cmdreg;
|
||||
|
||||
|
@ -53,7 +53,7 @@ void eprom_ck_cycle(struct net_device *dev)
|
|||
}
|
||||
|
||||
|
||||
void eprom_w(struct net_device *dev,short bit)
|
||||
static void eprom_w(struct net_device *dev,short bit)
|
||||
{
|
||||
u8 cmdreg;
|
||||
|
||||
|
@ -68,7 +68,7 @@ void eprom_w(struct net_device *dev,short bit)
|
|||
}
|
||||
|
||||
|
||||
short eprom_r(struct net_device *dev)
|
||||
static short eprom_r(struct net_device *dev)
|
||||
{
|
||||
u8 bit;
|
||||
|
||||
|
@ -82,7 +82,7 @@ short eprom_r(struct net_device *dev)
|
|||
}
|
||||
|
||||
|
||||
void eprom_send_bits_string(struct net_device *dev, short b[], int len)
|
||||
static void eprom_send_bits_string(struct net_device *dev, short b[], int len)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
Loading…
Reference in New Issue