From: Wei Yongjun Date: Thu, 18 May 2017 15:51:38 +0000 (+0000) Subject: xfrm: Make function xfrm_dev_register static X-Git-Tag: v4.13-rc1~157^2~100^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=24d472e4e497c29d2eb8fcbe6d9b373b66804e01;p=karo-tx-linux.git xfrm: Make function xfrm_dev_register static 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 Signed-off-by: Steffen Klassert --- diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index 8ec8a3fcf8d4..50ec73399b48 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -138,7 +138,7 @@ ok: } 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;