netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: mark netdev_create_hash __net_init
@ 2013-06-03  6:43 Baruch Siach
  2013-06-04 23:47 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2013-06-03  6:43 UTC (permalink / raw)
  To: netdev; +Cc: Baruch Siach

netdev_create_hash() is only called from netdev_init() which is marked
__net_init.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 net/core/dev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index fc1e289..36dd48d 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -6014,7 +6014,7 @@ netdev_features_t netdev_increment_features(netdev_features_t all,
 }
 EXPORT_SYMBOL(netdev_increment_features);
 
-static struct hlist_head *netdev_create_hash(void)
+static struct hlist_head * __net_init netdev_create_hash(void)
 {
 	int i;
 	struct hlist_head *hash;
-- 
1.7.10.4

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

* Re: [PATCH] net: mark netdev_create_hash __net_init
  2013-06-03  6:43 [PATCH] net: mark netdev_create_hash __net_init Baruch Siach
@ 2013-06-04 23:47 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-06-04 23:47 UTC (permalink / raw)
  To: baruch; +Cc: netdev

From: Baruch Siach <baruch@tkos.co.il>
Date: Mon,  3 Jun 2013 09:43:55 +0300

> netdev_create_hash() is only called from netdev_init() which is marked
> __net_init.
> 
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Applied, thanks.

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

end of thread, other threads:[~2013-06-04 23:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-03  6:43 [PATCH] net: mark netdev_create_hash __net_init Baruch Siach
2013-06-04 23:47 ` David Miller

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).