Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8640355ybl; Thu, 16 Jan 2020 21:34:48 -0800 (PST) X-Google-Smtp-Source: APXvYqye1rrb2zd4du0pjpoWyYNxJ6bAmvbUlcMaxrI7EM48+TUMG32+0ZcusFdGZTCEc8Zanl7A X-Received: by 2002:aca:4d58:: with SMTP id a85mr2135334oib.35.1579239288665; Thu, 16 Jan 2020 21:34:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579239288; cv=none; d=google.com; s=arc-20160816; b=Z1WGWLrnrTqo7zHCVeG9mxvHjpwpcZpkBjMgUOkF7zBi0mvNziXYtfVSdRbBD7xRUS WPSnsjsUn6Lup5rgq16qIkVOtuIX/dWfqCS3KVAa5l/gQU3JRmNj3d3aTukAj/V668/C zqm5Xz43uPD0qSoE7qzBY0RcMvXJyuOTCNxX1fJ/8DTOJ/AdOvGM6bfFEYhHBWDPxP4W pBhEEUMJysr6QdF2vFTX4dUMteaAOOLH7SNWtY8kScXwS5EliUY8sKqA4AFZ/luubYkj aMcxLbejPqwqgtE+pxufes2mubGKDHgiZjtRa0UxFXRGwvNxfInZp1Xtrs3VqJ4CkZ/U wZSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=imSKWoC291eohZgsrWD/LjCtAqZICIklk9Wyz8HO8IY=; b=VQ9LWvCWGRbruFrq82idqmkFR1KPe+6imhWL2aBMKmnkT3pi6hOqg46tpG1jEBQQSm 83TxwuMOtcrjrQ0Sh3GFk3G/oFgwKnvHzucTvMf+26vHnE13j+4X90PphHMN7p1jgksR w1h6+wTfATDqAGi+pLvN6aMReU59FkyvhTU8IA1fOqpzvcrK4IkRI9qZbtjwBy6DLHo5 Rb3hdkvapG5iblzEkLk8exDQ7tzgk0u7EOu5Dk1/dtCzjymBcLTw9QgOZINuAlwo2Qx5 5I78jDqKC7fTZQRcB2XWKLkvFttnnMNNTP4fBICYRQyrWDgKg0P/9wtRc74Vw/nam4Xc 3+Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Pvy9KYBi; 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 z11si14527020otm.312.2020.01.16.21.34.37; Thu, 16 Jan 2020 21:34:48 -0800 (PST) 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=Pvy9KYBi; 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 S1729999AbgAQETq (ORCPT + 99 others); Thu, 16 Jan 2020 23:19:46 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:45412 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbgAQETq (ORCPT ); Thu, 16 Jan 2020 23:19:46 -0500 Received: by mail-lj1-f194.google.com with SMTP id j26so24982933ljc.12; Thu, 16 Jan 2020 20:19:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=imSKWoC291eohZgsrWD/LjCtAqZICIklk9Wyz8HO8IY=; b=Pvy9KYBiXH03e36P8s+6tBl671hsS8qjrJCk9h9JlzINU0ywwm5RcsoG7hIigjT2SM 2P5K74yX7ecNg7TTMunbxjaZf4KOWnx+/D53phoBptlSM8egR54Z3zJZeRoMqQ8rQDzj 4Fw5pyJnSQgUWiDVMV/s72o2EeD4jDQRMJrkEYZlXeC0O5p+nn6z/ENyW065b4HMkPOf lSpr/GFQDfVDWnAABrr4v3Og0F8FANk9hrcZx6nN5YDAJkcv7xp0sSOaABM7Y7nuaacA LGD81kItcNTSYNScfDU4WZejj3Z2Pgse3rej/r7gyBUuBPfNXo2RXEVcoYthRw0vWkgZ hIlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=imSKWoC291eohZgsrWD/LjCtAqZICIklk9Wyz8HO8IY=; b=Y4m4rgJBs7f5/aBZtqu2cK8JWcEC/xswSqwauOKL3/ihZDODdVJyfrs4KbgJz9i4v0 T2LcVFurJoXgeKZk8B14MOvObjhLBgiUByH+HOurAyr83XV9UNq7jcI2VIYUBbCsMkKj /TXURsXc52JzlEz6Mfi/tyd3x5H86WZHwJJvN3zhdsoi6V8MUnhL61xvSZhks3r7QCtK Nd7dmPzZookdKUx4i3NhObgydqm/nUz5SDEZ/kQdzxvYPtdDiQqTKFxxuXhxxQ9AArda y3/2LmC1iGgJ9BmLr5Ebm0I7XrMiuCFuuxg+BqjAePfU9CI007Yl30fsjeNtJKdMoW75 MTWQ== X-Gm-Message-State: APjAAAXN3TeAcnB1+7n8qsR3liVODhQQeP+wR3GXpWejZMT7ZbQdH6ku tBA6cejG7doT1517/DU+likaW9+uESiW79Fv3pw= X-Received: by 2002:a2e:89d0:: with SMTP id c16mr4357865ljk.228.1579234783953; Thu, 16 Jan 2020 20:19:43 -0800 (PST) MIME-Version: 1.0 References: <20200116145300.59056-1-yuehaibing@huawei.com> In-Reply-To: From: Alexei Starovoitov Date: Thu, 16 Jan 2020 20:19:32 -0800 Message-ID: Subject: Re: [PATCH bpf-next] bpf: Remove set but not used variable 'first_key' To: Brian Vazquez Cc: YueHaibing , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Linux NetDev , bpf , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 5:41 PM Brian Vazquez wrote: > > On Thu, Jan 16, 2020 at 5:38 PM YueHaibing wrote: > > > > kernel/bpf/syscall.c: In function generic_map_lookup_batch: > > kernel/bpf/syscall.c:1339:7: warning: variable first_key set but not used [-Wunused-but-set-variable] > > > > It is never used, so remove it. > > Previous logic was using it but I forgot to delete it. Thanks for fixing it! > > Acked-by: Brian Vazquez Applied. Thanks