projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a133d93
)
xfrm: Make function xfrm_dev_register static
author
Wei Yongjun
<weiyongjun1@huawei.com>
Thu, 18 May 2017 15:51:38 +0000
(15:51 +0000)
committer
Steffen Klassert
<steffen.klassert@secunet.com>
Fri, 19 May 2017 09:42:39 +0000
(11:42 +0200)
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>
net/xfrm/xfrm_device.c
patch
|
blob
|
blame
|
history
diff --git
a/net/xfrm/xfrm_device.c
b/net/xfrm/xfrm_device.c
index 8ec8a3fcf8d4740670b16c2c1af099ef0beaa5c5..50ec73399b48a432f3824d9948e5553914c86c6b 100644
(file)
--- 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;