[Devel] [PATCH] setns: netns: Fix compilation of net/core/net_namespace.c
Matt Helsley
matthltc at us.ibm.com
Tue May 11 18:19:38 PDT 2010
Looks like the essential definitions for proc_ns_operations are missing
from net/core/net_namespace.c. Include them.
Without this patch compilation fails with:
net/core/net_namespace.c:598: error: variable ‘netns_operations’ has initializer but incomplete type
net/core/net_namespace.c:599: error: unknown field ‘name’ specified in initializer
net/core/net_namespace.c:599: error: implicit declaration of function ‘PROC_NSNAME’
net/core/net_namespace.c:599: warning: excess elements in struct initializer
net/core/net_namespace.c:599: warning: (near initialization for ‘netns_operations’)
net/core/net_namespace.c:600: error: unknown field ‘get’ specified in initializer
net/core/net_namespace.c:600: warning: excess elements in struct initializer
net/core/net_namespace.c:600: warning: (near initialization for ‘netns_operations’)
net/core/net_namespace.c:601: error: unknown field ‘put’ specified in initializer
net/core/net_namespace.c:601: warning: excess elements in struct initializer
net/core/net_namespace.c:601: warning: (near initialization for ‘netns_operations’)
net/core/net_namespace.c:602: error: unknown field ‘install’ specified in initializer
net/core/net_namespace.c:602: warning: excess elements in struct initializer
net/core/net_namespace.c:602: warning: (near initialization for ‘netns_operations’)
make[3]: *** [net/core/net_namespace.o] Error 1
Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
net/core/net_namespace.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index 0b51413..a7d9dfb 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -8,6 +8,7 @@
#include <linux/idr.h>
#include <linux/rculist.h>
#include <linux/nsproxy.h>
+#include <linux/proc_fs.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
--
1.6.3.3
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list