Skip to content

Commit

Permalink
xfrm: policy: fix IPv6-only espintcp compilation
Browse files Browse the repository at this point in the history
In case we're compiling espintcp support only for IPv6, we should
still initialize the common code.

Fixes: 26333c3 ("xfrm: add IPv6 support for espintcp")
Signed-off-by: Sabrina Dubroca <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
  • Loading branch information
qsn authored and klassert committed Jul 17, 2020
1 parent e229c87 commit 95a35b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#ifdef CONFIG_XFRM_STATISTICS
#include <net/snmp.h>
#endif
#ifdef CONFIG_INET_ESPINTCP
#ifdef CONFIG_XFRM_ESPINTCP
#include <net/espintcp.h>
#endif

Expand Down Expand Up @@ -4149,7 +4149,7 @@ void __init xfrm_init(void)
seqcount_init(&xfrm_policy_hash_generation);
xfrm_input_init();

#ifdef CONFIG_INET_ESPINTCP
#ifdef CONFIG_XFRM_ESPINTCP
espintcp_init();
#endif

Expand Down

0 comments on commit 95a35b4

Please sign in to comment.