Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11523128rwl; Tue, 3 Jan 2023 00:01:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXtKpEwJjgFVZtE7aXp5efMxb6wG1FreePRDt2m4Xtx+Nv/TUeYaewDUmf55aMpyPdnQavLX X-Received: by 2002:a05:6402:1298:b0:461:75f1:9254 with SMTP id w24-20020a056402129800b0046175f19254mr39295660edv.2.1672732871396; Tue, 03 Jan 2023 00:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672732871; cv=none; d=google.com; s=arc-20160816; b=0hrK3WwRbNTr/x/oZs+59w17AKwkdtV44aABv55eGcz0nXbj9FpctgJUcenu147qsq 9vSiGWvjPhJ/0xnKv91efkva9Igi/MZe/PP3LV0P8qKq3vi95m69IYn710Y1BWJQqFN+ q7GQQr/6TlAfSi1I/pDEWJ5UP3qkhvaMyF/i6Ku4EekAQvC0QBSVk/DeFHHwRIABM2R/ 0Hm6QBxMxjg3KKvKsbL6md8MqCvxZbU+mF7Odop/IKYO/r+jrW7ZIQU4TN2kW2nHLxhS gQZseoyMhCBqw+aTSILqlQnajkQNrF0AmV+5v209F5LjBy1rGdgZvmioSZjN3TIsC4P7 9tkg== 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=+ArT9V8qshZ9fBCZLxJ4WI9D9iNgDrqUD+NFWQciPiU=; b=qaX0lEKRbGD6SljjCRCwf+10wlrjRUND0m5/NxfyjJjQDt//vmOzm8m3IxXPUg3Gpg rABIG9a03LNLaiBvMCD0CihF/bC2Ob41FibFIiZGXQ2hpr/gLKQGfDF5Gt4NGgpeldRK e+/T4HtFao7Voadv+F9Z38bPVK8Zxuw9TN498CNhs4H4FW2vkbMvhNr9dqHFyuZxitOL fZe/X7vUy33X3UVb8ADoZ+g1QnmhFw9g7uS7ETbWEtIC/CxYEgrdiF5sl61433XV6pxn jRysF80uPEgAo6r+RG0dn233UWgQjLqNRpTWbaNNrLlGufVqeOj9JRoneCsKriUY72Kq pb4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X5xqNylb; 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 d26-20020a056402401a00b0048c4f4dc16bsi8300913eda.358.2023.01.03.00.00.52; Tue, 03 Jan 2023 00:01:11 -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=X5xqNylb; 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 S236920AbjACHiA (ORCPT + 61 others); Tue, 3 Jan 2023 02:38:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236912AbjACHh6 (ORCPT ); Tue, 3 Jan 2023 02:37:58 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8476A5FF7; Mon, 2 Jan 2023 23:37:55 -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 ams.source.kernel.org (Postfix) with ESMTPS id 2DEF9B80E52; Tue, 3 Jan 2023 07:37:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81FE4C433D2; Tue, 3 Jan 2023 07:37:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672731472; bh=+1+K/QMGEwB/t9nyEjns1p8p9ReMrS/m95IVeeWjbDc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=X5xqNylbdKKqVQfqkbksbhlW4tsgpB0FIoJT/BVb5+jvGU0iOh7fIINlPD3cF1m89 QPuEUm1whigKxqMb3sONrxLlrz07QjEpyFMKU9Nj78To6LwhEoUWphYy9DfG1jf+3C bbpJiEKSBrhNaAYj6o6VMfpXs/gF2igh3KRyO/Tn/cdOJj3eKZE7MiakBnq1FijBQ5 gi+T8NAVQJaZVz4Q16SAUyx19U76SnGrwd1rAGVFUCpk0DHlUkKWpQekv7MDI5wXFq 9wSNQVLbxReD9Mw0YlV3aBm86EpAryp4bz02J1aOv88rZdh+e8pK6k8DMJlC8JMRUC C5wi/oOP5iOCA== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: 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 , Pu Lehui , Pu Lehui Subject: Re: [RFC PATCH bpf-next 3/4] riscv, bpf: Add bpf_arch_text_poke support for RV64 In-Reply-To: <20221219133736.1387008-4-pulehui@huaweicloud.com> References: <20221219133736.1387008-1-pulehui@huaweicloud.com> <20221219133736.1387008-4-pulehui@huaweicloud.com> Date: Tue, 03 Jan 2023 08:37:50 +0100 Message-ID: <87v8looypd.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: > diff --git a/arch/riscv/net/bpf_jit_comp64.c b/arch/riscv/net/bpf_jit_com= p64.c > index bf4721a99a09..fa8b03c52463 100644 > --- a/arch/riscv/net/bpf_jit_comp64.c > +++ b/arch/riscv/net/bpf_jit_comp64.c > @@ -1266,7 +1389,7 @@ int bpf_jit_emit_insn(const struct bpf_insn *insn, = struct rv_jit_context *ctx, >=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; 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). Bj=C3=B6rn