Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3537410imm; Tue, 29 May 2018 08:55:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrzuNLlwp2kc0FgKmMv3h6bYDT7G8R7fVFZCUWtNMpWdVH7+KCBwMsSjovJDo4ZdLpdv2tI X-Received: by 2002:a17:902:bb07:: with SMTP id l7-v6mr18333703pls.128.1527609301422; Tue, 29 May 2018 08:55:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527609301; cv=none; d=google.com; s=arc-20160816; b=qUBISItgkOMi9t/4+UO4gr3qIcysU2++DAnyVLVLIq2DytwI3CaWuAxELoN7VjXlwH 3LUzP6UbX9QHvpIbG8U/3cNSeZxw+un11UTw9b8VPDWIA1jVB1Z99yY3HOOWvSq7PfU5 g0ljywUiIwBMB/JjTz2CtD73//7dvRXMVcwKD5loCb0YApDmIhneHsBMcLcKMrXSLviZ i974/JYXrHonP6jBbvNgIlO1pJR295Ek6haRfP7CoZsNwRjl5NBwPATFgegJgSHvcVIL Lchz7RGAgtxp80qK9fPSBELwM/4gg8OMj/WQW7V1sdxkRFQ+SsORuyqzmcSVWOn2rTKi Rijw== 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:dkim-signature :arc-authentication-results; bh=/5a2l630s9+h8VYPc6TWxBXQxfH2A9iydrqnCMQfVUs=; b=081KL81kaY0xizIY2bw6tahivVP8HtlpbIbntwdBWSYJx8QNJFHhIQWO8Rq7G3yNTb dvZuK4Yon7TLrZtfmfjT1dABAS0tXG4sswBJpXj7fFkypIXvvufx8oNNvaMOrLc7e1/o bkbwtl+HYOjOQwBTqX7ah/Le96QbrInCMVBkaTHZSimBiHAvhBdTX+ogbGXjT/3gYe3Q hXEkzOvN50cWLj8HAmxXXRaVrHrdW1cjz0AXM3N1xFoP0n01Kmfw8WhC2zl54QnnRkXQ BdxF4gPeg3Vehb+oR4VUebgrD6aC2II/PxJ5OyJ7HEgB7FhHEU7vZQa/AOPFEP/8V8de c8Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=StiK0n/x; 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 24-v6si33143271pfp.161.2018.05.29.08.54.47; Tue, 29 May 2018 08:55:01 -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=StiK0n/x; 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 S937013AbeE2PyP (ORCPT + 99 others); Tue, 29 May 2018 11:54:15 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:40674 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936523AbeE2PyF (ORCPT ); Tue, 29 May 2018 11:54:05 -0400 Received: by mail-io0-f194.google.com with SMTP id g14-v6so18182671ioc.7; Tue, 29 May 2018 08:54:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=/5a2l630s9+h8VYPc6TWxBXQxfH2A9iydrqnCMQfVUs=; b=StiK0n/xB9ABAbAvgG9bf2ANV6N3B0hMjACB1PpKNScXcNi68lwtovTdQinIcNY5YE VpNpC4M/E1yloQAhuevv+qQ0DCaT3Uw/wQe9I8luntogzEivNO5tl2ozDLShlXEmZw00 iqFXbbwcEOqkaOb605N+aVD+1/iY9PklIdwqVvXO+YzISBc6PFnWyBdhH2DJOlOmCuG2 IRHvQvallhA8tCwnateO7dYnZCdFOL+K3wuWS1n0MuOhlPaIko6MvnztNkYUgTF8L0sq QdBwoTs2ctipYNkjvhlycoXPbIyg8vjrlAaN4qrvfrd8CX4qsIkpFO726XXf48PK299P ngdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/5a2l630s9+h8VYPc6TWxBXQxfH2A9iydrqnCMQfVUs=; b=BAg5XM8hjn2YrXkS9393Q/Z/iofshMbXjhxtiuMMeGmWTaU//yB5HrdGALfx52S1hB jrS3VfXULI3DbGzhdjW2wVQ0Ny5Ezts/1MndqhJ0YZfi4cWOwTphYWRxHGI8qBXLN6S2 w89YlphVUW2gZolNB7xNd9FdXSnAEA5yYkrp1Nmdpc2kB62oBAbyJFq9GeptNvWSpRdw rFLMkd2+ahpJrP+vh3SCw/S+MRWyjLAWMSKcQKh8+9UZY1kWPi/oiupY7uyH1FX4koXN IHRi9+DVoSf2etZtmKcygi84iwGCt0UZ8JdsXuHtJKcSnYV/+Q9qqqFvy1J0Ej1IPrFx Zc4g== X-Gm-Message-State: ALKqPwfyWxZn4YGqmfXe8kl7ehU0P0U5aMW+/ltcE4ukFRfEFKkVFGkn at5R+n1hzsi/Ht7oCcNiAuQFv/mc X-Received: by 2002:a6b:844c:: with SMTP id g73-v6mr15851953iod.251.1527609244584; Tue, 29 May 2018 08:54:04 -0700 (PDT) Received: from [192.168.86.235] ([184.63.162.180]) by smtp.gmail.com with ESMTPSA id z2-v6sm7762526ita.37.2018.05.29.08.53.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 08:54:04 -0700 (PDT) Subject: Re: [PATCH bpf-next] bpf: hide the unused 'off' variable To: Arnd Bergmann , YueHaibing Cc: David Miller , Alexei Starovoitov , Daniel Borkmann , Networking , Linux Kernel Mailing List References: <20180529024018.12740-1-yuehaibing@huawei.com> From: John Fastabend Message-ID: <4a060ed5-f147-6778-caa2-7866b1f04479@gmail.com> Date: Tue, 29 May 2018 08:53:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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