From: Greg Kroah-Hartman Date: Mon, 10 Aug 2009 23:34:22 +0000 (-0700) Subject: Staging: rtl8192e: fix lots of sparse warnings X-Git-Tag: v2.6.32-rc1~668^2~39 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e1ad18a8d198ccb0e201cb444a58f7e277dfb4d;p=pandora-kernel.git Staging: rtl8192e: fix lots of sparse warnings This removes a number of static and extern warnings that sparse complains about. Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/r8180_93cx6.c b/drivers/staging/rtl8192e/r8180_93cx6.c index 838ee352c0ea..79f7a0f39623 100644 --- a/drivers/staging/rtl8192e/r8180_93cx6.c +++ b/drivers/staging/rtl8192e/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) { if(bit) write_nic_byte(dev, EPROM_CMD, @@ -35,7 +35,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) { write_nic_byte(dev, EPROM_CMD, (1<ieee80211, asSta, asRsn ); - if(memcpy(priv->ieee80211->current_network.bssid,asSta,6) == 0) + if(memcpy(priv->ieee80211->current_network.bssid,asSta,6) == NULL) { //ShuChen TODO: change media status. //ShuChen TODO: What to do when disassociate. @@ -891,7 +891,7 @@ MlmeDisassociateRequest( } -void +static void MgntDisconnectAP( struct net_device* dev, u8 asRsn @@ -945,7 +945,7 @@ MgntDisconnectAP( } -bool +static bool MgntDisconnect( struct net_device* dev, u8 asRsn Reading git-diff-tree failed