mac802154: sparse warnings: make symbols static
authoralex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com>
Tue, 10 Jul 2012 21:22:46 +0000 (21:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2012 14:54:45 +0000 (07:54 -0700)
Make symbols static to avoid the following warning shown up
by sparse:

    warning: symbol ... was not declared. Should it be static?

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac802154/mac_cmd.c
net/mac802154/mib.c

index 5d9a47b27938a3112361098a4a404b4b97f24937..d8d2770060899d18d0945c72aa2c83488ee4fa72 100644 (file)
@@ -55,7 +55,7 @@ static int mac802154_mlme_start_req(struct net_device *dev,
        return 0;
 }
 
-struct wpan_phy *mac802154_get_phy(const struct net_device *dev)
+static struct wpan_phy *mac802154_get_phy(const struct net_device *dev)
 {
        struct mac802154_sub_if_data *priv = netdev_priv(dev);
 
index 5c66b8f73f023eb1f944bd77968469d96bebcd3a..f47781ab0cccbc346bf8dc28f146fbbc49f05100 100644 (file)
@@ -39,7 +39,7 @@ struct hw_addr_filt_notify_work {
        unsigned long changed;
 };
 
-struct mac802154_priv *mac802154_slave_get_priv(struct net_device *dev)
+static struct mac802154_priv *mac802154_slave_get_priv(struct net_device *dev)
 {
        struct mac802154_sub_if_data *priv = netdev_priv(dev);
 
This page took 0.0613320000000001 seconds and 5 git commands to generate.