netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sysctl_net.c:36: error: 'core_table' undeclared here
@ 2005-10-01 13:35 Russell King
  0 siblings, 0 replies; only message in thread
From: Russell King @ 2005-10-01 13:35 UTC (permalink / raw)
  To: netdev

During the build for ARM machine type "fortunet", this error occurred:

  CC      net/sysctl_net.o
net/sysctl_net.c:36: error: 'core_table' undeclared here (not in a function)

The ARM configuration which produced this error can be found in:
 arch/arm/configs/fortunet_defconfig

where the relevant options are:
CONFIG_SYSCTL=y
CONFIG_NET=y
# CONFIG_INET is not set

core_table appears to be declared in net/sock.h.  if CONFIG_INET were
defined, net/sock.h would have been included via:
  sysctl_net.c -> net/ip.h -> linux/ip.h -> net/sock.h

so include it directly.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

(This patch is completely untested atm; we're waiting for the machine
to complete an existing build run.  However, I think this is fairly
obviously correct.)

diff --git a/net/sysctl_net.c b/net/sysctl_net.c
--- a/net/sysctl_net.c
+++ b/net/sysctl_net.c
@@ -16,6 +16,8 @@
 #include <linux/mm.h>
 #include <linux/sysctl.h>
 
+#include <net/sock.h>
+
 #ifdef CONFIG_INET
 #include <net/ip.h>
 #endif


-- 
Russell King

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-01 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-01 13:35 [PATCH] sysctl_net.c:36: error: 'core_table' undeclared here Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).