summaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-05-18 15:51:38 +0000
committerSteffen Klassert <steffen.klassert@secunet.com>2017-05-19 11:42:39 +0200
commit24d472e4e497c29d2eb8fcbe6d9b373b66804e01 (patch)
treeabee6285a136181e8b6c9a01a8d9907b85668ca9 /net/xfrm
parenta133d93054fa063fb3bd328abdc3d09a7e687afe (diff)
downloadop-kernel-dev-24d472e4e497c29d2eb8fcbe6d9b373b66804e01.zip
op-kernel-dev-24d472e4e497c29d2eb8fcbe6d9b373b66804e01.tar.gz
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 <weiyongjun1@huawei.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c
index 8ec8a3f..50ec733 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;
OpenPOWER on IntegriCloud