[PATCH -next] net namespace: build when SYSCTL=n

From: Randy Dunlap
Date: Fri Jul 18 2008 - 20:19:21 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

When CONFIG_SYSCTL=n, build fails with:

linux-next-20080718/include/net/net_namespace.h:40: error: field 'sysctls' has incomplete type

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
include/net/net_namespace.h | 2 ++
1 file changed, 2 insertions(+)

--- linux-next-20080718.orig/include/net/net_namespace.h
+++ linux-next-20080718/include/net/net_namespace.h
@@ -37,7 +37,9 @@ struct net {
struct proc_dir_entry *proc_net;
struct proc_dir_entry *proc_net_stat;

+#ifdef CONFIG_SYSCTL
struct ctl_table_set sysctls;
+#endif

struct net_device *loopback_dev; /* The loopback */



---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/