On Fri, Aug 19, 2005 at 05:01:05PM -0400, Ed Tomlinson wrote: > Hi, > > Adding the include to dmi.h allows the compile to get past this point though I > wonder if this is the correct place to put it? (Thanks Benoit) > > I now get: > > CC [M] net/ipv4/ipvs/ip_vs_ctl.o > net/ipv4/ipvs/ip_vs_ctl.c:1601: error: static declaration of 'ipv4_table' > follows non-static declaration > include/net/ip.h:376: error: previous declaration of 'ipv4_table' was here > make[3]: *** [net/ipv4/ipvs/ip_vs_ctl.o] Error 1 > make[2]: *** [net/ipv4/ipvs] Error 2 > make[1]: *** [net/ipv4] Error 2 > make: *** [net] Error 2 > > Ideas? >
I think the following is patch needed because ipv4_table is local to ipvs. Signed-off-by: Benoit Boissinot <[EMAIL PROTECTED]> --- ./net/ipv4/ipvs/ip_vs_lblc.c 2004-12-24 22:35:28.000000000 +0100 +++ ./net/ipv4/ipvs/ip_vs_lblc.c.new 2005-08-19 23:22:09.000000000 +0200 @@ -131,7 +131,7 @@ static ctl_table vs_table[] = { { .ctl_name = 0 } }; -static ctl_table ipv4_table[] = { +static ctl_table ipv4_vs_table[] = { { .ctl_name = NET_IPV4, .procname = "ipv4", @@ -146,7 +146,7 @@ static ctl_table lblc_root_table[] = { .ctl_name = CTL_NET, .procname = "net", .mode = 0555, - .child = ipv4_table + .child = ipv4_vs_table }, { .ctl_name = 0 } }; --- ./net/ipv4/ipvs/ip_vs_lblcr.c 2004-12-24 22:35:24.000000000 +0100 +++ ./net/ipv4/ipvs/ip_vs_lblcr.c.new 2005-08-19 23:22:25.000000000 +0200 @@ -320,7 +320,7 @@ static ctl_table vs_table[] = { { .ctl_name = 0 } }; -static ctl_table ipv4_table[] = { +static ctl_table ipv4_vs_table[] = { { .ctl_name = NET_IPV4, .procname = "ipv4", @@ -335,7 +335,7 @@ static ctl_table lblcr_root_table[] = { .ctl_name = CTL_NET, .procname = "net", .mode = 0555, - .child = ipv4_table + .child = ipv4_vs_table }, { .ctl_name = 0 } }; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/