summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2007-11-13 03:23:50 -0800
committerDavid S. Miller <davem@davemloft.net>2007-11-13 03:23:50 -0800
commit022cbae611a37eda80d498f8f379794c8ac3be47 (patch)
treec6fe8fe45748127c916d32ec97601c435065d5cb /include
parented160e839d2e1118529e58b04d52dba703ca629c (diff)
downloadop-kernel-dev-022cbae611a37eda80d498f8f379794c8ac3be47.zip
op-kernel-dev-022cbae611a37eda80d498f8f379794c8ac3be47.tar.gz
[NET]: Move unneeded data to initdata section.
This patch reverts Eric's commit 2b008b0a8e96b726c603c5e1a5a7a509b5f61e35 It diets .text & .data section of the kernel if CONFIG_NET_NS is not set. This is safe after list operations cleanup. Signed-of-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/net_namespace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index 1fd449a..5dd6d90 100644
--- a/include/net/net_namespace.h
+++ b/include/net/net_namespace.h
@@ -119,9 +119,11 @@ static inline struct net *maybe_get_net(struct net *net)
#ifdef CONFIG_NET_NS
#define __net_init
#define __net_exit
+#define __net_initdata
#else
#define __net_init __init
#define __net_exit __exit_refok
+#define __net_initdata __initdata
#endif
struct pernet_operations {
OpenPOWER on IntegriCloud