]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wlags49_h2: Fix sparse warning for static declaration
authorJelena Bjelja <jelena.bjelja.ing@gmail.com>
Sun, 16 Mar 2014 14:08:48 +0000 (15:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 18:14:50 +0000 (11:14 -0700)
Fix the following sparse warning:
drivers/staging/wlags49_h2/wl_netdev.c:533:6: warning: symbol 'wl_poll'
was not declared. Should it be static?

Signed-off-by: Jelena Bjelja <jelena.bjelja.ing@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlags49_h2/wl_netdev.c

index 965b1c0a475325d2ce79c9a4760328e1c20fd162..85fdedacceeb66880cc2e0af0d032053bbdbb3a4 100644 (file)
@@ -530,7 +530,7 @@ out_act_int_on_unlock:
 /*============================================================================*/
 
 #ifdef CONFIG_NET_POLL_CONTROLLER
-void wl_poll(struct net_device *dev)
+static void wl_poll(struct net_device *dev)
 {
     struct wl_private *lp = wl_priv(dev);
     unsigned long flags;