[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080727214250.GA5917@elte.hu>
Date: Sun, 27 Jul 2008 23:42:50 +0200
From: Ingo Molnar <mingo@...e.hu>
To: David Miller <davem@...emloft.net>
Cc: viro@...IV.linux.org.uk, torvalds@...ux-foundation.org,
linux-kernel@...r.kernel.org
Subject: [patch] Re: [bug, build failure] Re: [PATCH] missing bits of
net-namespace / sysctl
* Ingo Molnar <mingo@...e.hu> wrote:
> hmmm:
>
> net/ipv4/route.c: In function 'ip_static_sysctl_init':
> net/ipv4/route.c:3225: error: 'ipv4_route_path' undeclared (first use in this function)
> net/ipv4/route.c:3225: error: (Each undeclared identifier is reported only once
> net/ipv4/route.c:3225: error: for each function it appears in.)
> net/ipv4/route.c:3225: error: 'ipv4_route_table' undeclared (first use in this function)
>
> 64-bit x86 config attached.
minimal fix is below.
Ingo
>From b8406d18c942261bc98b3b749204881b52ef7d18 Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo@...e.hu>
Date: Sun, 27 Jul 2008 23:51:45 +0200
Subject: [PATCH] net/ipv4/route.c: fix build error
fix:
net/ipv4/route.c: In function 'ip_static_sysctl_init':
net/ipv4/route.c:3225: error: 'ipv4_route_path' undeclared (first use in this function)
net/ipv4/route.c:3225: error: (Each undeclared identifier is reported only once
net/ipv4/route.c:3225: error: for each function it appears in.)
net/ipv4/route.c:3225: error: 'ipv4_route_table' undeclared (first use in this function)
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
net/ipv4/route.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 380d647..d7bf056 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -3222,7 +3222,9 @@ int __init ip_rt_init(void)
*/
void __init ip_static_sysctl_init(void)
{
+#ifdef CONFIG_SYSCTL
register_sysctl_paths(ipv4_route_path, ipv4_route_table);
+#endif
}
EXPORT_SYMBOL(__ip_select_ident);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists