[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200203020220.117152-1-yaohongbo@huawei.com>
Date: Mon, 3 Feb 2020 10:02:20 +0800
From: Hongbo Yao <yaohongbo@...wei.com>
To: <ast@...nel.org>, <daniel@...earbox.net>
CC: <yaohongbo@...wei.com>, <chenzhou10@...wei.com>, <kafai@...com>,
<songliubraving@...com>, <yhs@...com>, <andriin@...com>,
<netdev@...r.kernel.org>, <bpf@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
<clang-built-linux@...glegroups.com>
Subject: [PATCH -next] bpf: make btf_check_func_type_match() static
Fix 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@...wei.com>
Signed-off-by: Hongbo Yao <yaohongbo@...wei.com>
---
kernel/bpf/btf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/bpf/btf.c b/kernel/bpf/btf.c
index 8c9d8f266bef..83d3d92023af 100644
--- a/kernel/bpf/btf.c
+++ b/kernel/bpf/btf.c
@@ -4144,7 +4144,7 @@ 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,
+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)
{
--
2.20.1
Powered by blists - more mailing lists