Skip to contentSkip to conversation

staging: wilc1000: Remove extern from function declarations

PATCH In review Amitoj Kaur Chawla 2 participants 2 messages Oct 31, 2015 – Nov 4, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: Remove extern from function declarations

Remove extern specifier since functions have it by default.

---
 drivers/staging/wilc1000/host_interface.c         | 4 ++--
 drivers/staging/wilc1000/linux_mon.c              | 2 +-
 drivers/staging/wilc1000/linux_wlan.c             | 4 ++--
 drivers/staging/wilc1000/linux_wlan_sdio.c        | 4 ++--
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 8 ++++----
 drivers/staging/wilc1000/wilc_wlan.c              | 2 +-
 6 files changed, 12 insertions(+), 12 deletions(-)
drivers/staging/wilc1000/host_interface.c +2 -2
index bb833d3..f2df312 100644
@@ -505,8 +505,8 @@ tstrWILC_WFIDrv *gu8FlushedJoinReqDrvHandler;
 
 static void *host_int_ParseJoinBssParam(tstrNetworkInfo *ptstrNetworkInfo);
 
-extern void chip_sleep_manually(u32 u32SleepTime);
-extern int linux_wlan_get_num_conn_ifcs(void);
+void chip_sleep_manually(u32 u32SleepTime);
+int linux_wlan_get_num_conn_ifcs(void);
 
 static int add_handler_in_list(tstrWILC_WFIDrv *handler)
 {
drivers/staging/wilc1000/linux_mon.c +1 -1
index bde4095..2f8f3ca 100644
@@ -28,7 +28,7 @@ extern linux_wlan_t *g_linux_wlan;
 
 static struct net_device *wilc_wfi_mon; /* global monitor netdev */
 
-extern int  mac_xmit(struct sk_buff *skb, struct net_device *dev);
+int  mac_xmit(struct sk_buff *skb, struct net_device *dev);
 
 
 u8 srcAdd[6];
drivers/staging/wilc1000/linux_wlan.c +2 -2
index 4737f0d..a80defb 100644
@@ -1048,10 +1048,10 @@ static void wlan_deinitialize_threads(linux_wlan_t *nic)
 #ifdef COMPLEMENT_BOOT
 
 extern volatile int probe;
-extern u8 core_11b_ready(void);
+u8 core_11b_ready(void);
 
 #define READY_CHECK_THRESHOLD		30
-extern void wilc_wlan_global_reset(void);
+void wilc_wlan_global_reset(void);
 u8 wilc1000_prepare_11b_core(wilc_wlan_inp_t *nwi, linux_wlan_t *nic)
 {
 	u8 trials = 0;
drivers/staging/wilc1000/linux_wlan_sdio.c +2 -2
index b1c6b6f..090cd55 100644
@@ -24,8 +24,8 @@
 
 struct sdio_func *local_sdio_func;
 extern linux_wlan_t *g_linux_wlan;
-extern int wilc_netdev_init(void);
-extern void wilc_handle_isr(void);
+int wilc_netdev_init(void);
+void wilc_handle_isr(void);
 
 static unsigned int sdio_default_speed;
 
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +4 -4
index 153ada8..2d5e326 100644
@@ -22,11 +22,11 @@
 #define IS_MGMT_STATUS_SUCCES			0x040
 #define GET_PKT_OFFSET(a) (((a) >> 22) & 0x1ff)
 
-extern int linux_wlan_get_firmware(perInterface_wlan_t *p_nic);
-extern u16 Set_machw_change_vir_if(bool bValue);
+int linux_wlan_get_firmware(perInterface_wlan_t *p_nic);
+u16 Set_machw_change_vir_if(bool bValue);
 
-extern int mac_open(struct net_device *ndev);
-extern int mac_close(struct net_device *ndev);
+int mac_open(struct net_device *ndev);
+int mac_close(struct net_device *ndev);
 
 tstrNetworkInfo astrLastScannedNtwrksShadow[MAX_NUM_SCANNED_NETWORKS_SHADOW];
 u32 u32LastScannedNtwrksCountShadow;
drivers/staging/wilc1000/wilc_wlan.c +1 -1
index e11d3d3..f14a278 100644
@@ -18,7 +18,7 @@
  ********************************************/
 extern wilc_hif_func_t hif_sdio;
 extern wilc_hif_func_t hif_spi;
-extern void WILC_WFI_mgmt_rx(u8 *buff, u32 size);
+void WILC_WFI_mgmt_rx(u8 *buff, u32 size);
 u32 wilc_get_chipid(u8 update);
 u16 Set_machw_change_vir_if(bool bValue);
 
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 11 lines · Amitoj Kaur Chawla

Remove extern specifier since functions have it by default.

---
 drivers/staging/wilc1000/host_interface.c         | 4 ++--
 drivers/staging/wilc1000/linux_mon.c              | 2 +-
 drivers/staging/wilc1000/linux_wlan.c             | 4 ++--
 drivers/staging/wilc1000/linux_wlan_sdio.c        | 4 ++--
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 8 ++++----
 drivers/staging/wilc1000/wilc_wlan.c              | 2 +-
 6 files changed, 12 insertions(+), 12 deletions(-)

Doesn't apply to my tree :(