diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-05-26 09:47:26 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-29 09:51:44 -0400 |
commit | 77ab8d5d2950cd0e18ba943336c1172b46e9f53e (patch) | |
tree | 321c4bbe602c0446d511f0f5e332d01d84024edc /net/ipv4/bpfilter | |
parent | 566e51d750f64049dc7767695b4cb988cd263056 (diff) | |
download | blackbird-op-linux-77ab8d5d2950cd0e18ba943336c1172b46e9f53e.tar.gz blackbird-op-linux-77ab8d5d2950cd0e18ba943336c1172b46e9f53e.zip |
net: bpfilter: make function bpfilter_mbox_request() static
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 <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/bpfilter')
-rw-r--r-- | net/ipv4/bpfilter/sockopt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/bpfilter/sockopt.c b/net/ipv4/bpfilter/sockopt.c index 42a96d2d8d05..5e04ed25bc0e 100644 --- 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"); |