summaryrefslogtreecommitdiffstats
path: root/kernel/bpf/btf.c
diff options
context:
space:
mode:
authorHongbo Yao <yaohongbo@huawei.com>2020-02-10 02:14:41 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2020-02-11 00:22:47 +0100
commit2bf0eb9b3b0d099b20b2c4736436b666d78b94d5 (patch)
treeed31b7f79bc6bb14daf78addbba25fc2ca39fbba /kernel/bpf/btf.c
parentbpf: Selftests build error in sockmap_basic.c (diff)
downloadlinux-2bf0eb9b3b0d099b20b2c4736436b666d78b94d5.tar.xz
linux-2bf0eb9b3b0d099b20b2c4736436b666d78b94d5.zip
bpf: Make btf_check_func_type_match() static
Fix the following sparse warning: kernel/bpf/btf.c:4131:5: warning: symbol 'btf_check_func_type_match' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Hongbo Yao <yaohongbo@huawei.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20200210011441.147102-1-yaohongbo@huawei.com
Diffstat (limited to 'kernel/bpf/btf.c')
-rw-r--r--kernel/bpf/btf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c
index 805c43b083e9..787140095e58 100644
--- a/kernel/bpf/btf.c
+++ b/kernel/bpf/btf.c
@@ -4142,9 +4142,9 @@ int btf_distill_func_proto(struct bpf_verifier_log *log,
* EFAULT - verifier bug
* 0 - 99% match. The last 1% is validated by the verifier.
*/
-int btf_check_func_type_match(struct bpf_verifier_log *log,
- struct btf *btf1, const struct btf_type *t1,
- struct btf *btf2, const struct btf_type *t2)
+static int btf_check_func_type_match(struct bpf_verifier_log *log,
+ struct btf *btf1, const struct btf_type *t1,
+ struct btf *btf2, const struct btf_type *t2)
{
const struct btf_param *args1, *args2;
const char *fn1, *fn2, *s1, *s2;