Subject: [PATCH] [XFRM] Add CONFIG_INET dependency to CONFIG_XFRM_STATISTICS

From: Johann Felix Soden <[email-masked]>
Date: Fri, 15 Feb 2008 16:08:43 +0100

From: Johann Felix Soden <[email-masked]>

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-masked]>
CC: Masahide NAKAMURA <[email-masked]>
---
 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