* [PATCH] staging: wilc1000: Remove unnecessary extern variables.
@ 2016-10-15 18:46 Elise Lennion
2016-10-15 18:51 ` [Outreachy kernel] " Julia Lawall
0 siblings, 1 reply; 3+ messages in thread
From: Elise Lennion @ 2016-10-15 18:46 UTC (permalink / raw)
To: aditya.shankar, ganesh.krishna, gregkh, outreachy-kernel
The externs were removed because there are already declarations
in wilc_wlan.h for them.
Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
---
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index fca96d3..a5e2d96 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -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;
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Outreachy kernel] [PATCH] staging: wilc1000: Remove unnecessary extern variables.
2016-10-15 18:46 [PATCH] staging: wilc1000: Remove unnecessary extern variables Elise Lennion
@ 2016-10-15 18:51 ` Julia Lawall
2016-10-15 22:18 ` Elise Lennion
0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2016-10-15 18:51 UTC (permalink / raw)
To: Elise Lennion; +Cc: aditya.shankar, ganesh.krishna, gregkh, outreachy-kernel
On Sat, 15 Oct 2016, Elise Lennion wrote:
> The externs were removed because there are already declarations
> in wilc_wlan.h for them.
Are these functions actually used in more than one file?
julia
>
> Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
> ---
> drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
> index fca96d3..a5e2d96 100644
> --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
> +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
> @@ -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;
> --
> 2.7.4
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20161015184643.GA2580%40lennorien.com.
> For more options, visit https://groups.google.com/d/optout.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Outreachy kernel] [PATCH] staging: wilc1000: Remove unnecessary extern variables.
2016-10-15 18:51 ` [Outreachy kernel] " Julia Lawall
@ 2016-10-15 22:18 ` Elise Lennion
0 siblings, 0 replies; 3+ messages in thread
From: Elise Lennion @ 2016-10-15 22:18 UTC (permalink / raw)
To: Julia Lawall; +Cc: aditya.shankar, ganesh.krishna, gregkh, outreachy-kernel
On Sat, Oct 15, 2016 at 08:51:51PM +0200, Julia Lawall wrote:
>
>
> On Sat, 15 Oct 2016, Elise Lennion wrote:
>
> > The externs were removed because there are already declarations
> > in wilc_wlan.h for them.
>
> Are these functions actually used in more than one file?
Actually not, I see that in this driver there are many extern variables
that could be declared in a .c file as static.
elise
>
> julia
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-15 22:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-15 18:46 [PATCH] staging: wilc1000: Remove unnecessary extern variables Elise Lennion
2016-10-15 18:51 ` [Outreachy kernel] " Julia Lawall
2016-10-15 22:18 ` Elise Lennion
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.