lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 24 Dec 2020 16:00:48 +0800 From: YANG LI <abaci-bugfix@...ux.alibaba.com> To: ast@...nel.org Cc: daniel@...earbox.net, andrii@...nel.org, kafai@...com, songliubraving@...com, yhs@...com, john.fastabend@...il.com, kpsingh@...nel.org, davem@...emloft.net, kuba@...nel.org, hawk@...nel.org, natechancellor@...il.com, ndesaulniers@...gle.com, netdev@...r.kernel.org, bpf@...r.kernel.org, linux-kernel@...r.kernel.org, clang-built-linux@...glegroups.com, YANG LI <abaci-bugfix@...ux.alibaba.com> Subject: [PATCH] bpf: fix: symbol 'btf_vmlinux' was not declared. Symbol 'btf_vmlinux' was not declared in the header file and does not add extern, so no other file uses it. It's better to add static to it. Signed-off-by: YANG LI <abaci-bugfix@...ux.alibaba.com> Reported-by: Abaci <abaci@...ux.alibaba.com> --- kernel/bpf/verifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 17270b8..535d364 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -244,7 +244,7 @@ struct bpf_call_arg_meta { u32 ret_btf_id; }; -struct btf *btf_vmlinux; +static struct btf *btf_vmlinux; static DEFINE_MUTEX(bpf_verifier_lock); -- 1.8.3.1
Powered by blists - more mailing lists