diff options
author | Denis V. Lunev <den@openvz.org> | 2007-11-13 06:23:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-13 06:23:50 -0500 |
commit | 022cbae611a37eda80d498f8f379794c8ac3be47 (patch) | |
tree | c6fe8fe45748127c916d32ec97601c435065d5cb /include | |
parent | ed160e839d2e1118529e58b04d52dba703ca629c (diff) |
[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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 1fd449a6530b..5dd6d90b37eb 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) | |||
119 | #ifdef CONFIG_NET_NS | 119 | #ifdef CONFIG_NET_NS |
120 | #define __net_init | 120 | #define __net_init |
121 | #define __net_exit | 121 | #define __net_exit |
122 | #define __net_initdata | ||
122 | #else | 123 | #else |
123 | #define __net_init __init | 124 | #define __net_init __init |
124 | #define __net_exit __exit_refok | 125 | #define __net_exit __exit_refok |
126 | #define __net_initdata __initdata | ||
125 | #endif | 127 | #endif |
126 | 128 | ||
127 | struct pernet_operations { | 129 | struct pernet_operations { |