diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-05-18 18:51:38 +0300 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-05-19 12:42:39 +0300 |
commit | 24d472e4e497c29d2eb8fcbe6d9b373b66804e01 (patch) | |
tree | abee6285a136181e8b6c9a01a8d9907b85668ca9 /net/xfrm/xfrm_device.c | |
parent | a133d93054fa063fb3bd328abdc3d09a7e687afe (diff) | |
download | linux-24d472e4e497c29d2eb8fcbe6d9b373b66804e01.tar.xz |
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/xfrm_device.c')
-rw-r--r-- | net/xfrm/xfrm_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |