[NET]: Move unneeded data to initdata section.
This patch reverts Eric's commit 2b008b0a8e
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>
This commit is contained in:
committed by
David S. Miller
parent
ed160e839d
commit
022cbae611
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user