projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
566e51d
)
net: bpfilter: make function bpfilter_mbox_request() static
author
Wei Yongjun
<
[email protected]
>
Sat, 26 May 2018 09:47:26 +0000
(09:47 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 29 May 2018 13:51:44 +0000
(09:51 -0400)
Fixes the following sparse warnings:
net/ipv4/bpfilter/sockopt.c:13:5: warning:
symbol 'bpfilter_mbox_request' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/bpfilter/sockopt.c
patch
|
blob
|
history
diff --git
a/net/ipv4/bpfilter/sockopt.c
b/net/ipv4/bpfilter/sockopt.c
index 42a96d2d8d05aac4f6d045fdf3d00984e2d02f2f..5e04ed25bc0e92a5f4e62c78b45b50d9e6b7d1fc 100644
(file)
--- a/
net/ipv4/bpfilter/sockopt.c
+++ b/
net/ipv4/bpfilter/sockopt.c
@@
-10,8
+10,9
@@
int (*bpfilter_process_sockopt)(struct sock *sk, int optname,
unsigned int optlen, bool is_set);
EXPORT_SYMBOL_GPL(bpfilter_process_sockopt);
-int bpfilter_mbox_request(struct sock *sk, int optname, char __user *optval,
- unsigned int optlen, bool is_set)
+static int bpfilter_mbox_request(struct sock *sk, int optname,
+ char __user *optval,
+ unsigned int optlen, bool is_set)
{
if (!bpfilter_process_sockopt) {
int err = request_module("bpfilter");