net: netdev_kobject_init: annotate with __init
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 6 Jan 2014 00:20:11 +0000 (01:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2014 01:27:54 +0000 (20:27 -0500)
netdev_kobject_init() is only being called from __init context,
that is, net_dev_init(), so annotate it with __init as well, thus
the kernel can take this as a hint that the function is used only
during the initialization phase and free up used memory resources
after its invocation.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c
net/core/net-sysfs.h

Simple merge
Simple merge