diff mbox

net: mark netdev_create_hash __net_init

Message ID 7cbbda0ef5f9aef68eeb6553761e0b325102547f.1370241801.git.baruch@tkos.co.il
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Baruch Siach June 3, 2013, 6:43 a.m. UTC
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(-)

Comments

David Miller June 4, 2013, 11:47 p.m. UTC | #1
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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;