netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac802154: fix sparse warning for mac802154_slave_get_priv
@ 2012-07-13 20:36 Silviu-Mihai Popescu
  2012-07-14  3:42 ` Alexander Smirnov
  0 siblings, 1 reply; 2+ messages in thread
From: Silviu-Mihai Popescu @ 2012-07-13 20:36 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel, davem, alex.bluesman.smirnov, Silviu-Mihai Popescu

Make sparse happy by fixing the following error:
	* symbol 'mac802154_slave_get_priv' was not declared. Should it be static?

Signed-off-by: Silviu-Mihai Popescu <silviupopescu1990@gmail.com>
---
 net/mac802154/mib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac802154/mib.c b/net/mac802154/mib.c
index ab59821..1cf6557 100644
--- a/net/mac802154/mib.c
+++ b/net/mac802154/mib.c
@@ -34,7 +34,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);
 
-- 
1.7.11-rc3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-14  3:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-13 20:36 [PATCH] mac802154: fix sparse warning for mac802154_slave_get_priv Silviu-Mihai Popescu
2012-07-14  3:42 ` Alexander Smirnov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).