Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3229715imm; Tue, 29 May 2018 03:36:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZro9IXUrP1qIe739Q5ChqsztGTGJqDTsoEE+JCstRRb0DYQL5LIviuQFpvguniwqTcJlMi0 X-Received: by 2002:a17:902:8a82:: with SMTP id p2-v6mr17039784plo.244.1527590163036; Tue, 29 May 2018 03:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527590163; cv=none; d=google.com; s=arc-20160816; b=uxy2AQb3KhJE3ZRcqssbQN4/UwytG8cGO7bY4KafBkB/tBCrs8kY0WO33rP4U20iR4 MUksCp0ySQ16JTl6nYvdcLF88Kx0NblgKMfig1WSSeXOvwDSfsCOXABrFteQnDTJHiMr 3FsvI/OJtaVeoxHUVLQEtZSaL2ppT5j7L5cxQ7erAQOhV6cP9+qUPc/VW5909/fNikba 7XHFmvPjOGDErh4fOL349R07OoRnX8fo0eNH2xwirx05UVJmezsmJJMtw1Mxrx7vA33b zO/wPhm2N8O2siv2GUR3NaBIxdy7VI3snpEntgGQ3Pnj8mfsSu7yHe9DQhZ8xn40nx/O M79Q== 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=RLiZgokMIzB9Ft6Qer9ciKeo1DCQnHtOBxPdjiYduXw=; b=fQ00iTKPluUU6uWEeRIS2kdGjxxYh+lwAwmKcY/2jIsN/D+gdznWhx4eht94n/3pCQ F1B3tqo3SzR5V/rtEmp5H4VaZTvJkizyhUi+VJXCF7Y5yM786PqoOn6YJIrv8KeunuWD 2a1mfC4WTc2/JIsjOH1I5NW3Itj2fRc1JMQ5sjMEL17JdEpq0aMKucBFND5hgBRXfTiy ewUSSnwFZeX8gmnBP15KQlGVJax3V4I1ZF0NvkKPdvJVMqRX8csYOowA+8TrZvoekjRU bomldhUeH4djyeGEvcoVsO6vhgFynUQ9kLYcQDQLGZAUbmKVOFR+9IOca85WfqUrgTI9 JeJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=QQ+/7EDo; 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 f71-v6si25180439pgc.641.2018.05.29.03.35.48; Tue, 29 May 2018 03:36:03 -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=fail header.i=@gmail.com header.s=20161025 header.b=QQ+/7EDo; 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 S932892AbeE2KfW (ORCPT + 99 others); Tue, 29 May 2018 06:35:22 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:37340 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932629AbeE2KfQ (ORCPT ); Tue, 29 May 2018 06:35:16 -0400 Received: by mail-qk0-f194.google.com with SMTP id j12-v6so7693998qkk.4; Tue, 29 May 2018 03:35:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=RLiZgokMIzB9Ft6Qer9ciKeo1DCQnHtOBxPdjiYduXw=; b=QQ+/7EDobgpfkQU2gCXzTcWuzlVV/g+6rjLBPbOFRPCSx42mXwdGePKtRafKw4hl7P xly93z2mnYdHJd9J9OgvyIXekZfTn6lbuXfDDk7DB5frrxHEMdQKQGbX5J/FPYCkV8x7 2spov0vALoA0982LylDn8xmKFtz4zBnHCJFyY01irpJAhdTD4/TYb0z4z3/2Hb7JHkHY OKtFklSKvDyDEkIGrzwNqioRVNO/9VSETIftbIPg0xhiovsBilg8AZpmWAQ3U/npiolj uD6pGhJ3OT4KRW+HnxZ2E+4Uz8kti+htBJTJsBq2M1nIDkQLFC/FJzdK62wRMxzb4fcF G8zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=RLiZgokMIzB9Ft6Qer9ciKeo1DCQnHtOBxPdjiYduXw=; b=BhVntp+axkq2bmqOk02UehmrTN1cyeDjWqCgzZmmeXjNiyuX/8Gh32omDl2KlCobhM CX5MwTj3raW7f2XWWd1Ve6gNSm0SU9Hi8xmqnJGC9MPS1BRYjjKpDoO6Giu7a2SteJPf 4JyNvbeBpq64OiRdAwTVnjoXmByAci0uBgySyMB+wdq8NBLaLWePaf5k8NacyBDy3oHg XhJCquMGtiOFRsxmVMHIeBh6N3CI7Oju6H0oQW70AUnKzl+WnsaettH6Bdd0kiLNOf6G Hqi+KkB7u6qjgpKoHxQBkNvOQGMC3lmgbK+NwzyMBWeKIFCu+S6TPgrCq/BmcCH3HqIE JLDQ== X-Gm-Message-State: ALKqPwdhkEoOQACY26LOzGmjTJMG6cz+rVqD2oKNqx+lABkgvzLdFsAK qp5zmD8wYP5mySlA5mppOV1OnHAQzUc++kTSaAA= X-Received: by 2002:a37:b401:: with SMTP id d1-v6mr13846872qkf.283.1527590115519; Tue, 29 May 2018 03:35:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:b903:0:0:0:0:0 with HTTP; Tue, 29 May 2018 03:35:14 -0700 (PDT) In-Reply-To: <20180529024018.12740-1-yuehaibing@huawei.com> References: <20180529024018.12740-1-yuehaibing@huawei.com> From: Arnd Bergmann Date: Tue, 29 May 2018 12:35:14 +0200 X-Google-Sender-Auth: GlkcUeRX0tCzVjo5mH1PIMDM08E Message-ID: Subject: Re: [PATCH bpf-next] bpf: hide the unused 'off' variable To: YueHaibing Cc: 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 4:40 AM, YueHaibing wrote: > 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