Skip to contentSkip to conversation

net namespace: build when SYSCTL=n

PATCH In review Randy Dunlap 3 participants 3 messages Jul 19, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net namespace: build when SYSCTL=n

From: Randy Dunlap <[email protected]>

When CONFIG_SYSCTL=n, build fails with:

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

---
 include/net/net_namespace.h |    2 ++
 1 file changed, 2 insertions(+)
include/net/net_namespace.h +2 -0
@@ -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/

maintainer
#1 lore raw

From: Randy Dunlap <[email protected]>
Date: Fri, 18 Jul 2008 17:18:12 -0700

Quoted 7 lines

From: Randy Dunlap <[email protected]>

When CONFIG_SYSCTL=n, build fails with:

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

This 'sysctls' member isn't present in my networking tree, it must be coming from some other tree and thus the patch needs to be applied there.

#2 lore raw
Quoted 7 lines · David Miller

From: Randy Dunlap <[email protected]>
Date: Fri, 18 Jul 2008 17:18:12 -0700

Quoted 4 lines

From: Randy Dunlap <[email protected]>

When CONFIG_SYSCTL=n, build fails with:

Quoted 7 lines
Quoted 3 lines

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

This 'sysctls' member isn't present in my networking tree, it must be coming from some other tree and thus the patch needs to be applied there.

Yup. Applied.