[PATCH] [XFRM] Add CONFIG_INET dependency to CONFIG_XFRM_STATISTICS

2008-02-15 Thread Johann Felix Soden
From: Johann Felix Soden [EMAIL PROTECTED]

With INET=n and XFRM_STATISTICS=y I get the following build failure:

net/built-in.o: In function `xfrm_init':
(.init.text+0xcd7): undefined reference to `snmp_mib_init'

Signed-off-by: Johann Felix Soden [EMAIL PROTECTED]
CC: Masahide NAKAMURA [EMAIL PROTECTED]
---
 net/xfrm/Kconfig |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig
index 8f9dbec..3bf2338 100644
--- a/net/xfrm/Kconfig
+++ b/net/xfrm/Kconfig
@@ -38,7 +38,7 @@ config XFRM_MIGRATE
 
 config XFRM_STATISTICS
bool Transformation statistics (EXPERIMENTAL)
-   depends on XFRM  PROC_FS  EXPERIMENTAL
+   depends on XFRM  PROC_FS  INET  EXPERIMENTAL
---help---
  This statistics is not a SNMP/MIB specification but shows
  statistics about transformation error (or almost error) factor
-- 
1.5.4.1


--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] [IPV4]: Fix compiler error with CONFIG_PROC_FS=n

2008-02-05 Thread Johann Felix Soden
From: Johann Felix Soden [EMAIL PROTECTED]

Handle CONFIG_PROC_FS=n in net/ipv4/fib_frontend.c because:

net/ipv4/fib_frontend.c: In function 'fib_net_init':
net/ipv4/fib_frontend.c:1032: error: implicit declaration of function 
'fib_proc_init'
net/ipv4/fib_frontend.c: In function 'fib_net_exit':
net/ipv4/fib_frontend.c:1047: error: implicit declaration of function 
'fib_proc_exit'

Signed-off-by: Johann Felix Soden [EMAIL PROTECTED]
---
 net/ipv4/fib_frontend.c |5 +
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index 86ff271..581d588 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -1029,9 +1029,12 @@ static int __net_init fib_net_init(struct net *net)
error = nl_fib_lookup_init(net);
if (error  0)
goto out_nlfl;
+#ifdef CONFIG_PROC_FS
error = fib_proc_init(net);
if (error  0)
goto out_proc;
+#endif
+
 out:
return error;
 
@@ -1044,7 +1047,9 @@ out_nlfl:
 
 static void __net_exit fib_net_exit(struct net *net)
 {
+#ifdef CONFIG_PROC_FS
fib_proc_exit(net);
+#endif
nl_fib_lookup_exit(net);
ip_fib_net_exit(net);
 }
-- 
1.5.4



--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[NET]: Remove further references to net-modules.txt

2008-02-03 Thread Johann Felix Soden
From: Johann Felix Soden [EMAIL PROTECTED]

The Kconfig of igb and enc28j60 contains references to
obsolet Documentation/networking/net-modules.txt.

Signed-off-by: Johann Felix Soden [EMAIL PROTECTED]
---
 drivers/net/Kconfig |6 ++
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 389980f..87f503b 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -919,8 +919,7 @@ config ENC28J60
---help---
  Support for the Microchip EN28J60 ethernet chip.
 
- To compile this driver as a module, choose M here and read
- file:Documentation/networking/net-modules.txt.  The module will be
+ To compile this driver as a module, choose M here. The module will be
  called enc28j60.
 
 config ENC28J60_WRITEVERIFY
@@ -2040,8 +2039,7 @@ config IGB
  More specific information on configuring the driver is in
  file:Documentation/networking/e1000.txt.
 
- To compile this driver as a module, choose M here and read
- file:Documentation/networking/net-modules.txt.  The module
+ To compile this driver as a module, choose M here. The module
  will be called igb.
 
 source drivers/net/ixp2000/Kconfig
-- 
1.5.4



--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html