From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Fastabend Subject: Re: [PATCH bpf-next] bpf: hide the unused 'off' variable Date: Tue, 29 May 2018 08:53:47 -0700 Message-ID: <4a060ed5-f147-6778-caa2-7866b1f04479@gmail.com> References: <20180529024018.12740-1-yuehaibing@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: David Miller , Alexei Starovoitov , Daniel Borkmann , Networking , Linux Kernel Mailing List To: Arnd Bergmann , YueHaibing Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 05/29/2018 03:35 AM, Arnd Bergmann wrote: > On Tue, May 29, 2018 at 4:40 AM, YueHaibing wrote: >> The local variable is only used while CONFIG_IPV6 enabled >> >> net/core/filter.c: In function ‘sk_msg_convert_ctx_access’: >> net/core/filter.c:6489:6: warning: unused variable ‘off’ [-Wunused-variable] >> int off; >> ^ >> This puts it into #ifdef. >> >> Fixes: 303def35f64e ("bpf: allow sk_msg programs to read sock fields") >> Signed-off-by: YueHaibing > > I was about to send the same patch and found you had already sent one. > > Acked-by: Arnd Bergmann > Thanks! I'm curious why kbuild bot didn't catch this. Will try to dig into that in a bit. Acked-by: John Fastabend