Skip to content

Commit

Permalink
net: mark netdev_create_hash __net_init
Browse files Browse the repository at this point in the history
netdev_create_hash() is only called from netdev_init() which is marked
__net_init.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Baruch Siach authored and David S. Miller committed Jun 4, 2013
1 parent f1362e3 commit 430f03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -6088,7 +6088,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;
Expand Down

0 comments on commit 430f03c

Please sign in to comment.