Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp38664pxb; Tue, 2 Nov 2021 22:54:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoJocNczpt21Jnd9FqJXYToNE+3yJVRHyF5gND8aS3R0Zu4Izs687i3C6jSJ4vMz6lCdX5 X-Received: by 2002:a92:de42:: with SMTP id e2mr27563811ilr.55.1635918843929; Tue, 02 Nov 2021 22:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635918843; cv=none; d=google.com; s=arc-20160816; b=uWszLKAtKjxlzOTJ9n9riyDQKavdw6Yl1jgWT8/VgdEzEPNr+h+MkV0WEX+WkWmHwu tFbNlGS1yCsbL9II2x1xteyVgCSnhtWubJ+Z4bP0+pjWyroLv7VC0QfmQTecmnRZmgxl I2/IGLCfCtnrxaQpGLrxOzf91M+49Ms8VsVoz3cBeGilzMDZkIWHHkyJYbx/9sH0tzv2 ivy4L9lYfUkTB2SUlk4YBZLGhst+z3C3QuVaWVVJPAtPKDGmz+z5oKUV/9hm6w4e/QJh J1Q0f1pWOWStaXr6VnxlkpWmKVLlPTQLJQpikXa5hgQFnR1nO3ts52m3irM1ZS5W9dce BXLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=V23b+TjsFkoXHxyVNTTnYv9pOKhL3GNxVTtHYPNeyC0=; b=NZwbTPKz+ssXKq2u9xfvW+0G85x6PsvFUGqhAHoqitcrONqSYKhQTWzkUVq1g77e1+ 18HBnpbOH0MmH34fZqOxRy0Y7iD7E9eKNYIc1s8HByFIpM9FNw/B77n9IOzux/ahKxGc R79PK9Pc6WNhMTksZfLSDdzZR6A6hZFJPfuWpdjz+vUvWd5AhlVAnR4Z1giD/2GbwA+W 24C2Cskfw32E3lVwDDBq8d0hVpzniMNP05S8Ml0+4HvmSeTxL3c0jwIJE8/k2cvVLwd8 ta+7R80Dg2hl++//SvNtSPpIp81l6HV9FGGpBDYt9gfL0tPk4UeVgVS6P+VRf1SJ+Ani 8gLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=H8HpcYDs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id z4si1634926ilz.95.2021.11.02.22.53.40; Tue, 02 Nov 2021 22:54:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=H8HpcYDs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231267AbhKCFzN (ORCPT + 99 others); Wed, 3 Nov 2021 01:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbhKCFzM (ORCPT ); Wed, 3 Nov 2021 01:55:12 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 052EEC061714; Tue, 2 Nov 2021 22:52:37 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id n36-20020a17090a5aa700b0019fa884ab85so633700pji.5; Tue, 02 Nov 2021 22:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V23b+TjsFkoXHxyVNTTnYv9pOKhL3GNxVTtHYPNeyC0=; b=H8HpcYDsiKxUAlvyigL0NvlV/6ZyWSm+IMzgAY2iHJTkBcKUTNBGH6DpbFRpUESj2U xb/wdNHVlvJeS1DUnfyUSrpo6+9LaqYonREj4kZ//O+Ef1sJfG5nPLkgTZYjHcIPC26u 7qTng6ZJx3BlxEQnGvb7FGcG3VL4LRmTl2QO1Waw245qPx/4bBKa+Ub1V2SiP7n11I6M A7Qyo/qP7E4KThO8lzoLwjHnx2VoYAjXSmD+tjo3/ncEAQIpGOmRX6T+oOs/Yp6c/VzB QXeSA8YKwzbrrQ5XY4HeAcWLiUEYGE1VXqZ4YywLsVourMtxbxkKkO1SHb7v8um7pmbM c5EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V23b+TjsFkoXHxyVNTTnYv9pOKhL3GNxVTtHYPNeyC0=; b=KW6mgUjFrO1OzrzJzvFfEAPrkYfZlZl3CBEQn+rbL7k+OR8wP/Fx5X5kH545fILT/s RTADah3flzEBYxGMqa0xaPLvyNKqqOXwypp/45QAqaOwLPCwTW6xCEfFMCmpuhAuUhe/ c4t95VwTRjx4X9ljht5CMUhcx1kctuhlnH0+eQYBj9TNmByqvYJcmTAJiTm1BMitFWkq 6eY6hgdkWBgedanQjhfS5b9GxZABK10TJNWEKcbtwzk28O7/XPpV7W48e6Wo3B2a8ZMm FaYjlBTY+xnJLE4VMebtmy128zsZGqFLqHYUx36AkUHDJbPssJk3n1CAFKezHw/88S6u P2mw== X-Gm-Message-State: AOAM533HcDPV8t46ck/UOqqu8miMK1UMfdlpbDLDXGEgyKTgz9Oaba0s RN9MBXDmI3p21z/N/w2GHTeJ/ppswmYV9SbhkqA= X-Received: by 2002:a17:90a:17a5:: with SMTP id q34mr12210406pja.122.1635918756539; Tue, 02 Nov 2021 22:52:36 -0700 (PDT) MIME-Version: 1.0 References: <20211103054722.25285-1-zhang.mingyu@zte.com.cn> In-Reply-To: <20211103054722.25285-1-zhang.mingyu@zte.com.cn> From: Alexei Starovoitov Date: Tue, 2 Nov 2021 22:52:25 -0700 Message-ID: Subject: Re: [PATCH] bpf, x86:remove unneeded variable To: cgel.zte@gmail.com Cc: "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Wang YanQing , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , "H. Peter Anvin" , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Network Development , bpf , LKML , Zhang Mingyu , Zeal Robot Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 2, 2021 at 10:47 PM wrote: > > From: Zhang Mingyu > > Fix the following coccinelle REVIEW: > ./arch/x86/net/bpf_jit_comp32.c:1274:5-8 trash that checker and please send patches after you tested them. > Reported-by: Zeal Robot > Signed-off-by: Zhang Mingyu > --- > arch/x86/net/bpf_jit_comp32.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/x86/net/bpf_jit_comp32.c b/arch/x86/net/bpf_jit_comp32.c > index da9b7cfa4632..bce7b9b5a653 100644 > --- a/arch/x86/net/bpf_jit_comp32.c > +++ b/arch/x86/net/bpf_jit_comp32.c > @@ -1271,7 +1271,6 @@ static void emit_epilogue(u8 **pprog, u32 stack_depth) > static int emit_jmp_edx(u8 **pprog, u8 *ip) > { > u8 *prog = *pprog; > - int cnt = 0; > > #ifdef CONFIG_RETPOLINE > EMIT1_off32(0xE9, (u8 *)__x86_indirect_thunk_edx - (ip + 5)); > @@ -1280,7 +1279,7 @@ static int emit_jmp_edx(u8 **pprog, u8 *ip) > #endif > *pprog = prog; > > - return cnt; > + return 0; > } > > /* > -- > 2.25.1 >