diff options
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 7e7e2b0d2915..62f5a259e597 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -1850,8 +1850,9 @@ static inline struct xfrm_offload *xfrm_offload(struct sk_buff *skb) | |||
1850 | } | 1850 | } |
1851 | #endif | 1851 | #endif |
1852 | 1852 | ||
1853 | #ifdef CONFIG_XFRM_OFFLOAD | ||
1854 | void __net_init xfrm_dev_init(void); | 1853 | void __net_init xfrm_dev_init(void); |
1854 | |||
1855 | #ifdef CONFIG_XFRM_OFFLOAD | ||
1855 | int validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features); | 1856 | int validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features); |
1856 | int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, | 1857 | int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, |
1857 | struct xfrm_user_offload *xuo); | 1858 | struct xfrm_user_offload *xuo); |
@@ -1877,10 +1878,6 @@ static inline void xfrm_dev_state_free(struct xfrm_state *x) | |||
1877 | } | 1878 | } |
1878 | } | 1879 | } |
1879 | #else | 1880 | #else |
1880 | static inline void __net_init xfrm_dev_init(void) | ||
1881 | { | ||
1882 | } | ||
1883 | |||
1884 | static inline int validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features) | 1881 | static inline int validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features) |
1885 | { | 1882 | { |
1886 | return 0; | 1883 | return 0; |