From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966525AbeE2TvD (ORCPT ); Tue, 29 May 2018 15:51:03 -0400 Received: from www62.your-server.de ([213.133.104.62]:41881 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966455AbeE2Tu6 (ORCPT ); Tue, 29 May 2018 15:50:58 -0400 Subject: Re: [PATCH bpf-next] bpf: hide the unused 'off' variable To: Song Liu , John Fastabend Cc: Arnd Bergmann , YueHaibing , David Miller , Alexei Starovoitov , Networking , Linux Kernel Mailing List References: <20180529024018.12740-1-yuehaibing@huawei.com> <4a060ed5-f147-6778-caa2-7866b1f04479@gmail.com> From: Daniel Borkmann Message-ID: <2b40c9d1-d8c7-ae0a-7339-aac2a20ba1b2@iogearbox.net> Date: Tue, 29 May 2018 21:50:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/29/2018 08:18 PM, Song Liu wrote: > On Tue, May 29, 2018 at 8:53 AM, John Fastabend > wrote: >> 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 > > Acked-by: Song Liu Applied to bpf-next, thanks Yue!