summaryrefslogtreecommitdiff
path: root/net/core/net-sysfs.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2014-01-06 01:20:11 +0100
committerDavid S. Miller <davem@davemloft.net>2014-01-05 20:27:54 -0500
commita48d4bb0b08fa621439bfcc32ad2f4c4e98decfc (patch)
tree102b8426fef5285cf8f71e3714efe2831d15a071 /net/core/net-sysfs.h
parent855404efae0d449cc491978d54ea5d117a3cb271 (diff)
net: netdev_kobject_init: annotate with __init
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>
Diffstat (limited to 'net/core/net-sysfs.h')
-rw-r--r--net/core/net-sysfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net-sysfs.h b/net/core/net-sysfs.h
index bd7751ec1c4d..2745a1b51e03 100644
--- a/net/core/net-sysfs.h
+++ b/net/core/net-sysfs.h
@@ -1,7 +1,7 @@
#ifndef __NET_SYSFS_H__
#define __NET_SYSFS_H__
-int netdev_kobject_init(void);
+int __init netdev_kobject_init(void);
int netdev_register_kobject(struct net_device *);
void netdev_unregister_kobject(struct net_device *);
int net_rx_queue_update_kobjects(struct net_device *, int old_num, int new_num);