From: Ana Rey Date: Thu, 13 Mar 2014 11:36:37 +0000 (+0100) Subject: staging: rtl8192u: make in r8180_93cx6.c some local functions static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f6bd19e0ae33a35197a4ee9473f14077a3e7d71d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 Signed-off-by: Peter P Waskiewicz Jr --- diff --git a/drivers/staging/rtl8192u/r8180_93cx6.c b/drivers/staging/rtl8192u/r8180_93cx6.c index c61729b727ef..cd06054fbedb 100644 --- a/drivers/staging/rtl8192u/r8180_93cx6.c +++ b/drivers/staging/rtl8192u/r8180_93cx6.c @@ -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;