Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11552067rwl; Tue, 3 Jan 2023 00:38:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXvKaxUADG9SZZKGIpOJ+PDGo4kPqjg5UT0Av/y6FPxfKI0vOcaOctDVxegmphTZMUrbLlKG X-Received: by 2002:a17:90a:af91:b0:219:de9b:f397 with SMTP id w17-20020a17090aaf9100b00219de9bf397mr48036015pjq.3.1672735105448; Tue, 03 Jan 2023 00:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672735105; cv=none; d=google.com; s=arc-20160816; b=bVZJmjUR9AqOvJ8XgyyNLqgbIJqHnYFmrRWlTvgrCeojQ+WH/cMbo61wEYUgnEh0m9 RtzsMes6OkZVTsk6GR3E/+XHJEHn0hshn0IiU7nxwrE2BQX6cpM7sp7//aUUZS4blQ8H SQKAodQnF3jmHUHGL120a47OSwaB6gSBNQFbIe0FULRlEbMI79MVqS9IK9vyKC50wbtg X1SG7eASUgnD+pGc7kqoSvjqnRWQM0nitB3P96pqPrFYH01e0BSORe/TKbvOB6UmTM+y 51wXZHyVWxLNMvMfy+njPLd/yeEoaD8rCAcyGODzPgfXsgRWtrzUOdxRF/f79bcEIVb3 wZ2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=MPu/AKsgAhqEthTNmt1fPJfhHm+q2nFjg4fMg1QPc68=; b=VfgWC2DAVME62jmcNzIt+i/QhZc2G3Spfu+TyCTJ8XoNyhQ3LPM4KRAUFosDcNOVpC XTwKevbrqCGthy6wv2EpSZD/yfRiCcHM/dg7IQeMnsg0e3KttYp4iIsC0ijAC4rBDCvc EP0WM2li8yqQ+il6EBBsj7UqB6swG/kfQooq+NX7dkNHhG5iIyZfj/vkiK4hNrjb7g6i gmjWzGV6gvF+jWklre9w+FmdHrcMfmZqFNX8v9X+UDLkBLC8BRXar16o9LGIvfQ8cfcM g6+w7U9on+maLfVqLH+bCGFUu+lDjxqhOZ55cweKMxpwHH82/1pRUp3e1q2yzFPPm0XD tPfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sBpIsLtI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g17-20020a635651000000b0049ca23dd6d9si17457594pgm.134.2023.01.03.00.38.17; Tue, 03 Jan 2023 00:38:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sBpIsLtI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237021AbjACIWH (ORCPT + 61 others); Tue, 3 Jan 2023 03:22:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237109AbjACIV6 (ORCPT ); Tue, 3 Jan 2023 03:21:58 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17E5E273; Tue, 3 Jan 2023 00:21:58 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A8AEE611D7; Tue, 3 Jan 2023 08:21:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0BD6C433D2; Tue, 3 Jan 2023 08:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672734117; bh=dqCGbesuZiSsICKd93nHojCpNBxlFGWi0BSgSMEb2pA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=sBpIsLtIFN6ZpAAvncp4NPROcu9aq/ZhbboTy6pAxSq/YNT6got2j0ZNoYXyxaDjA eIn959uLAsLuVQgktqfl8IuQA5Y5wBcm59pMAGl7AY35WHlusiPuKfc9LwCyGHi+cw eqVTyM/iRFa0WtcwwB4ePCn78mcqXX28noBbCHMuUbFHCDZ/jdSOHlenB5ofbSL01E jBpGE2PlGurycpmFSrC591OzUqC/cuOj4cB1v5llVIt/FJGAv/CKcFezFbVqd5QdJs qqje8Q32aPVfIa4ZJ8llY8VX4AAu62dOZ7EJi+VAc2790Kg7+XWsg4SgVoEmwrbYOu BqBCMxrNobCvg== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Pu Lehui , Pu Lehui , bpf@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Paul Walmsley , Palmer Dabbelt , Albert Ou Subject: Re: [RFC PATCH bpf-next 3/4] riscv, bpf: Add bpf_arch_text_poke support for RV64 In-Reply-To: <713f9f26-da42-eda8-c804-338d61b1557c@huawei.com> References: <20221219133736.1387008-1-pulehui@huaweicloud.com> <20221219133736.1387008-4-pulehui@huaweicloud.com> <87v8looypd.fsf@all.your.base.are.belong.to.us> <713f9f26-da42-eda8-c804-338d61b1557c@huawei.com> Date: Tue, 03 Jan 2023 09:21:54 +0100 Message-ID: <877cy4xc2l.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pu Lehui writes: > On 2023/1/3 15:37, Bj=C3=B6rn T=C3=B6pel wrote: >> Pu Lehui writes: >>=20 >>> diff --git a/arch/riscv/net/bpf_jit_comp64.c b/arch/riscv/net/bpf_jit_c= omp64.c >>> index bf4721a99a09..fa8b03c52463 100644 >>> --- a/arch/riscv/net/bpf_jit_comp64.c >>> +++ b/arch/riscv/net/bpf_jit_comp64.c >>=20 >>> @@ -1266,7 +1389,7 @@ int bpf_jit_emit_insn(const struct bpf_insn *insn= , struct rv_jit_context *ctx, >>>=20=20=20 >>> void bpf_jit_build_prologue(struct rv_jit_context *ctx) >>> { >>> - int stack_adjust =3D 0, store_offset, bpf_stack_adjust; >>> + int i, stack_adjust =3D 0, store_offset, bpf_stack_adjust; >>> bool is_main_prog =3D ctx->prog->aux->func_idx =3D=3D 0; >>=20 >> This line magically appeared, and makes it hard to apply the series >> without hacking the patches manually. Going forward, please supply a >> base tree commit to the series (or a link to a complete git tree). >>=20 > > A rebase version has been resend as follow: > > https://lore.kernel.org/bpf/20221220021319.1655871-1-pulehui@huaweicloud.= com/ Yes, but with the same issue: https://lore.kernel.org/bpf/20221220021319.1655871-4-pulehui@huaweicloud.co= m/ The "is_main_prog" line is still around in the resend. Bj=C3=B6rn