Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3746502imm; Tue, 29 May 2018 12:51:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL5bTGPVyn/lxz+wspJczeMhSbrJLCa+IkGwuHPxmpM6Ch4HHep49fiYPLsOvJc8uVWfVem X-Received: by 2002:a63:6e4f:: with SMTP id j76-v6mr134456pgc.16.1527623504866; Tue, 29 May 2018 12:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527623504; cv=none; d=google.com; s=arc-20160816; b=HEXL2ztfJY+qUPCt9lTH2cO9QZcgmKINUjcwhLnZFzEyZFBvlTerfZzimnAnegMdlt faraPzvQ5VPnT9YFIaZ5FZXhOMVXE+Dto5mS99MIz7EHfeKJDTDMqgAnW3RVegiTCrvp WLShDXFtQLxGgNALYo4ozT0dUR9o72KLJDM/74gJz8XjgU74CE8hqPHNifcieI/zZ0b4 c1NSUCnsNXmLIm8JtWR0oXPPfV0xOo9jrleYufeO8Z0ilhDy1rlvC/e69/d3KlFeQkjn Z1DhRBPNZl5CZFo8GGTJaAnnh7owtvtWq2OzddSaQCTmgoHc2rkEiDGLx8jLXnZ8Vy1o Up5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=/W+881x0SxeiHmH6oZb8RlVjl/LEgK4cL2vqeS6SajE=; b=OZcB4Bp2ymZ61s70WEaHwG4nvDyvOwnsTcTJTGHMw+WlIagrBDWwtbi+4HB9aEePJc a4fcURJ7kViGvEnSZof1nEhDFjcUaGydNOe8OWavnWELq/Gjr6QaEJ5KWoRw3zwxfc5o 50FWeURRZEwx8c58tCc8gfZS6O/7Vg6r6A/a+dS8Fk3e0GFk9XNgV1CkClCu+YcFIoYv YDw0cmz8Mtcm92dLtjopqO2KhKdmD3bzz4T9ymju3oeHVvGgNd9U5wY7eKqUq54n9pMJ KZiH3cezYqNg9dDdm4ZHVcq4FMusWTqCGCg3Qbeq4QKrsrB3cxpkrkKxvCVSuQ/+/vhs pezA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6-v6si25461001pgp.152.2018.05.29.12.51.29; Tue, 29 May 2018 12:51:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966519AbeE2TvD (ORCPT + 99 others); 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 Received: from [62.202.221.10] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1fNkdv-0007TJ-Ab; Tue, 29 May 2018 21:50:51 +0200 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 X-Virus-Scanned: Clear (ClamAV 0.99.3/24614/Tue May 29 14:33:53 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk 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!