Staging: rtl8192u: fix functions that should not be declared extern
authorTeodora Baluta <teobaluta@gmail.com>
Wed, 16 Oct 2013 20:53:32 +0000 (23:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2013 01:51:26 +0000 (18:51 -0700)
These functions are already marked extern in the header file

drivers/staging/rtl8192u/r819xU_phy.c:1716:13: warning: function 'InitialGainOperateWorkItemCallBack' with external linkage has definition
drivers/staging/rtl8192u/r819xU_cmdpkt.c:497:12: warning: function 'cmpk_message_handle_rx' with external linkage has definition

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r819xU_cmdpkt.c
drivers/staging/rtl8192u/r819xU_phy.c

index f40f9c895f566b1e56d72be73bdb3dc83d2cde2e..7bdcbd39a3b25a3fb8c4d7eaaf6e95ac59b64ad9 100644 (file)
@@ -494,8 +494,8 @@ static void cmpk_handle_tx_rate_history(struct net_device *dev, u8 *pmsg)
  *  05/06/2008         amy     Create Version 0 porting from windows code.
  *
  *---------------------------------------------------------------------------*/
-extern u32 cmpk_message_handle_rx(struct net_device *dev,
-                                 struct ieee80211_rx_stats *pstats)
+u32 cmpk_message_handle_rx(struct net_device *dev,
+                          struct ieee80211_rx_stats *pstats)
 {
        int                     total_length;
        u8                      cmd_length, exe_cnt = 0;
index 17ac1202c906d381fa63f0c88e6a992a28bab49a..39cd426bc5e5e92adf49c21ff8b7de004bb3b9ad 100644 (file)
@@ -1713,7 +1713,7 @@ void InitialGain819xUsb(struct net_device *dev,   u8 Operation)
                queue_delayed_work(priv->priv_wq, &priv->initialgain_operate_wq, 0);
 }
 
-extern void InitialGainOperateWorkItemCallBack(struct work_struct *work)
+void InitialGainOperateWorkItemCallBack(struct work_struct *work)
 {
        struct delayed_work *dwork = container_of(work, struct delayed_work,
                                                  work);