Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3674181imm; Tue, 29 May 2018 11:20:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoprix0bX4W4dY7YRgjXltcoG5GF7Xb6g08Z672XZKcZGE03x7vJp8XHoiMeyZnJpjhYRC1 X-Received: by 2002:a63:66c2:: with SMTP id a185-v6mr15022387pgc.347.1527618048634; Tue, 29 May 2018 11:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527618048; cv=none; d=google.com; s=arc-20160816; b=L0s4e4ZKarb3ClA5tCCWJYsw8PeXCbJB1n5aPPMS1VwnPDyr6V5kjiM8HjnOLBtqYf ine44ApfbYDMJjcr/uSESQjxRWm952IFkJ5p8fXzbd2rA8ikdW57hxllckgOvc/voo0N BkRI1ZHsZ/jUdfExlsZNFGYafNIc4JPI3sZCy9gHWko4uICeRCdk/ZBV9jM7AD44gwYM 1qo/ByGfpZyzWqF+i+RXd8cR0zocUgA7x0VJj1FiVUuxoqfos0u934o5H1zW/F4HoOjT C345ZJfqhQz0ER2TzwoYQvdZ+MjMxX3GiUR+Uv8hYTFDId0BLprEfLJk9ScSjj7ucPkU JKSQ== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=avBxTjIKpAYpL8SeMtVnZMzbKXRf2cvB31PeH9XsKW4=; b=YV1rZ5/Wvmq3BW3ZwBQ3auPkghrb3IfVU8Yhk68XMXI9mnZ4mwGFoLvedHS1LO6nP+ RITkXq7+zPb0NK/WIfS2mixtL9SwTNOcKsJtenHYvFsOcAu1XpkXaJMxvMBtr09k64OV FdNij0qkp1P6s6GSzx8/RuKjccbIJ0haCCkLgUlfu5FSKKiSSwTxH2ACliO87nVtttSH RNdJQwo6STCxAPMAIjPbEidpeO2cNkAZFjsQsX9J80NqlwNp3fmdNOOhMtfHdpiF0MvX CsUP2BH/URpiwqZnXPOXNfHfiXtkjUMKFgCJy/N9yGd2B4kcocGjunjAwcz5KxOUWH7U VGJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tAXhtaNv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v66-v6si26196746pgv.344.2018.05.29.11.20.34; Tue, 29 May 2018 11:20:48 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tAXhtaNv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965895AbeE2SSd (ORCPT + 99 others); Tue, 29 May 2018 14:18:33 -0400 Received: from mail-qt0-f172.google.com ([209.85.216.172]:40851 "EHLO mail-qt0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936888AbeE2SSS (ORCPT ); Tue, 29 May 2018 14:18:18 -0400 Received: by mail-qt0-f172.google.com with SMTP id h2-v6so19866551qtp.7; Tue, 29 May 2018 11:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=avBxTjIKpAYpL8SeMtVnZMzbKXRf2cvB31PeH9XsKW4=; b=tAXhtaNvLuGLXGQUeRa4h789Nh5xMabS1onsQWK92bwTZT0zCK5mMr58Gkghcd5lOU kbmBV8lLgkgQXzT5MV6TDu/sD8qRO5eE8dQGd5EfBzMTXYvvIEcIDNSo8QoQRO2nSe0m B1/Twfx5gTAOf0e29uj+0jJQq+ViXxBtB4hN3LId+LSsMiPu9SUiZrm/ZyAHhP1hbDce kUkpzK3fMtzNypMO+QgUmdfOdRBTIEiJsLrAvUCqvXy1h7aqNMVuirUJMbHVuBiUWxOO XRU++XLxqXVJzTj265Oy77/QCeKMoZN2Qmlil9Fn8QAGxtWKZGJOCQ/KQyoDnmlAyifJ sdWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=avBxTjIKpAYpL8SeMtVnZMzbKXRf2cvB31PeH9XsKW4=; b=na17VIjpF6rhI1zmc5Zz9PNwOjFPDSwNTBL56LmFxsZfAoikHzrYnw36aufR9qkd9l Gmiuv/I9sBO3r4RbbGkxgqDFY2DWsJMVJZ+tCfK386fQQyF9BNALozZ9Lk6WLkTMQAJb pakrW4csumyYqml71ZodlbO4+aRhszTXlp3rSzS/28Z7dOfTZb7iSLnrnzPlOL/j7j8g ghkCAjSjWjVryvfM+SAyyi/CtkzBLyUJ2yvt8R/tj0uA7PS6geKhWV7+JJkjYrZo+8Xb oLYk+Sctc1AKqMjlmPj2V6QNTnKvc+L2AOVCl31SuhGMSNowsvkAIXC0BYPZ3Hs8j12J zexA== X-Gm-Message-State: ALKqPwdzeI/GjhzUamsAHLqfwjbsCLyRskFLow76NV2UWP3hybKAOWw2 7EJmAwQjqf1h8oRAtjlmRVJpS3zv5Q4fuTG9+x6aeA== X-Received: by 2002:a0c:88ac:: with SMTP id 41-v6mr16971864qvn.201.1527617896254; Tue, 29 May 2018 11:18:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:9e10:0:0:0:0:0 with HTTP; Tue, 29 May 2018 11:18:15 -0700 (PDT) In-Reply-To: <4a060ed5-f147-6778-caa2-7866b1f04479@gmail.com> References: <20180529024018.12740-1-yuehaibing@huawei.com> <4a060ed5-f147-6778-caa2-7866b1f04479@gmail.com> From: Song Liu Date: Tue, 29 May 2018 11:18:15 -0700 Message-ID: Subject: Re: [PATCH bpf-next] bpf: hide the unused 'off' variable To: John Fastabend Cc: Arnd Bergmann , YueHaibing , David Miller , Alexei Starovoitov , Daniel Borkmann , Networking , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 wrot= e: >>> The local variable is only used while CONFIG_IPV6 enabled >>> >>> net/core/filter.c: In function =E2=80=98sk_msg_convert_ctx_access=E2=80= =99: >>> net/core/filter.c:6489:6: warning: unused variable =E2=80=98off=E2=80= =99 [-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