Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
David S. Miller
77ab8d5d 566e51d7

+3 -2
+3 -2
net/ipv4/bpfilter/sockopt.c
··· 10 10 unsigned int optlen, bool is_set); 11 11 EXPORT_SYMBOL_GPL(bpfilter_process_sockopt); 12 12 13 - int bpfilter_mbox_request(struct sock *sk, int optname, char __user *optval, 14 - unsigned int optlen, bool is_set) 13 + static int bpfilter_mbox_request(struct sock *sk, int optname, 14 + char __user *optval, 15 + unsigned int optlen, bool is_set) 15 16 { 16 17 if (!bpfilter_process_sockopt) { 17 18 int err = request_module("bpfilter");