xfrm: Make function xfrm_dev_register static
Subsystems (3)
PATCH 1/1 xfrm: Make function xfrm_dev_register static
From: Wei Yongjun <[email protected]>
Fixes the following sparse warning:
net/xfrm/xfrm_device.c:141:5: warning:
symbol 'xfrm_dev_register' was not declared. Should it be static?
Signed-off-by Wei Yongjun <[email protected]>
--- net/xfrm/xfrm_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/xfrm/xfrm_device.c +1 -1
@@ -138,7 +138,7 @@ bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x) }EXPORT_SYMBOL_GPL (xfrm_dev_offload_ok); -int xfrm_dev_register (struct net_device *dev) +static int xfrm_dev_register (struct net_device *dev) {if ((dev->features &NETIF_F_HW_ESP ) && !dev->xfrmdev_ops)return NOTIFY_BAD ;
Quoted 8 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
Fixes the following sparse warning:
net/xfrm/xfrm_device.c:141:5: warning:
symbol 'xfrm_dev_register' was not declared. Should it be static?Signed-off-by Wei Yongjun <[email protected]>
Applied to ipsec-next, thanks!