Staging: wilc1000: Make functions wilc_mac_{open/close} static
PATCH 1/1 Staging: wilc1000: Make functions wilc_mac_{open/close} static
The functions wilc_mac_{open/close} are used only in linux_wlan.c. Therefore, declare them static and remove their declaration from header wilc_wlan.h and also remove their extern declaration from wilc_wfi_cfgoperations.c.
Signed-off-by Bhumika Goyal <[email protected]>
--- drivers/staging/wilc1000/linux_wlan.c | 4 ++-- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 3 --- drivers/staging/wilc1000/wilc_wlan.h | 3 --- 3 files changed, 2 insertions(+), 8 deletions(-)
drivers/staging/wilc1000/linux_wlan.c +2 -2
@@ -832,7 +832,7 @@ static int mac_init_fn(struct net_device *ndev)return 0 ; } -int wilc_mac_open (struct net_device *ndev) +static int wilc_mac_open (struct net_device *ndev) {struct wilc_vif *vif;
@@ -1023,7 +1023,7 @@ int wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev)return 0 ; } -int wilc_mac_close (struct net_device *ndev) +static int wilc_mac_close (struct net_device *ndev) {struct wilc_priv *priv;struct wilc_vif *vif;
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +0 -3
@@ -90,9 +90,6 @@ static const struct wiphy_wowlan_support wowlan_support = {#define IS_MGMT_STATUS_SUCCES 0x040#define GET_PKT_OFFSET (a) (((a) >> 22) & 0x1ff) -extern int wilc_mac_open (struct net_device *ndev); -extern int wilc_mac_close (struct net_device *ndev); -static struct network_info last_scanned_shadow[MAX_NUM_SCANNED_NETWORKS_SHADOW ];static u32 last_scanned_cnt;struct timer_list wilc_during_ip_timer;
drivers/staging/wilc1000/wilc_wlan.h +0 -3
@@ -297,9 +297,6 @@ void wilc_enable_tcp_ack_filter(bool value);int wilc_wlan_get_num_conn_ifcs (struct wilc *);int wilc_mac_xmit (struct sk_buff *skb,struct net_device *dev); -int wilc_mac_open (struct net_device *ndev); -int wilc_mac_close (struct net_device *ndev); -void WILC_WFI_p2p_rx (struct net_device *dev,u8 *buff,u32 size);void host_wakeup_notify (struct wilc *wilc);void host_sleep_notify (struct wilc *wilc);
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 11 lines · Bhumika Goyal
The functions wilc_mac_{open/close} are used only in
linux_wlan.c. Therefore, declare them static and remove their declaration from headerwilc_wlan.hand also remove their extern declaration fromwilc_wfi_cfgoperations.c.Signed-off-by Bhumika Goyal <[email protected]>--- drivers/staging/wilc1000/linux_wlan.c | 4 ++-- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 3 --- drivers/staging/wilc1000/wilc_wlan.h | 3 --- 3 files changed, 2 insertions(+), 8 deletions(-)
You didn't build test your changes, not very nice, as this path broke the build :(
Please be more careful in the future.
greg k-h