[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8fc6fb64-8858-bbda-8381-3341167cd004@iogearbox.net>
Date: Thu, 30 Apr 2020 01:15:27 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Arnd Bergmann <arnd@...db.de>, Alexei Starovoitov <ast@...nel.org>,
Andrii Nakryiko <andriin@...com>
Cc: Martin KaFai Lau <kafai@...com>, Song Liu <songliubraving@...com>,
Yonghong Song <yhs@...com>, netdev@...r.kernel.org,
bpf@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] bpf: fix unused variable warning
On 4/29/20 3:21 PM, Arnd Bergmann wrote:
> Hiding the only using of bpf_link_type_strs[] in an #ifdef causes
> an unused-variable warning:
>
> kernel/bpf/syscall.c:2280:20: error: 'bpf_link_type_strs' defined but not used [-Werror=unused-variable]
> 2280 | static const char *bpf_link_type_strs[] = {
>
> Move the definition into the same #ifdef.
>
> Fixes: f2e10bff16a0 ("bpf: Add support for BPF_OBJ_GET_INFO_BY_FD for bpf_link")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Applied, thanks!
Powered by blists - more mailing lists