From: Sebastian Siewior Date: Wed, 9 Jan 2008 08:36:17 +0000 (-0800) Subject: [XFRM]: Remove ifdef crypto. X-Git-Tag: MMI-PSA29.97-13-9~37648^2~827 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=50dd79653e295ce40da38c03bbfb5966aa1c1598;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [XFRM]: Remove ifdef crypto. and select the crypto subsystem if neccessary Signed-off-by: Sebastian Siewior Acked-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig index 6b5b50f427fc..8f9dbec319be 100644 --- a/net/xfrm/Kconfig +++ b/net/xfrm/Kconfig @@ -3,6 +3,7 @@ # config XFRM bool + select CRYPTO depends on NET config XFRM_USER diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index 1686f64c4352..b5c5347aed66 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c @@ -486,7 +486,6 @@ EXPORT_SYMBOL_GPL(xfrm_ealg_get_byidx); */ void xfrm_probe_algs(void) { -#ifdef CONFIG_CRYPTO int i, status; BUG_ON(in_softirq()); @@ -511,7 +510,6 @@ void xfrm_probe_algs(void) if (calg_list[i].available != status) calg_list[i].available = status; } -#endif } EXPORT_SYMBOL_GPL(xfrm_probe_algs);