Skip to content

Commit 4288404

Browse files
alex-bluesmandavem330
authored andcommitted
mac802154: sparse warnings: make symbols static
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>
1 parent 79ff1db commit 4288404

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/mac802154/mac_cmd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static int mac802154_mlme_start_req(struct net_device *dev,
5555
return 0;
5656
}
5757

58-
struct wpan_phy *mac802154_get_phy(const struct net_device *dev)
58+
static struct wpan_phy *mac802154_get_phy(const struct net_device *dev)
5959
{
6060
struct mac802154_sub_if_data *priv = netdev_priv(dev);
6161

‎net/mac802154/mib.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct hw_addr_filt_notify_work {
3939
unsigned long changed;
4040
};
4141

42-
struct mac802154_priv *mac802154_slave_get_priv(struct net_device *dev)
42+
static struct mac802154_priv *mac802154_slave_get_priv(struct net_device *dev)
4343
{
4444
struct mac802154_sub_if_data *priv = netdev_priv(dev);
4545

0 commit comments

Comments
 (0)