From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6B0A232785; Mon, 4 Aug 2025 20:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754339232; cv=none; b=ellcEPjBgGRehizT91qvlY1O1wxPjYL3cBgq9dYnd+vUpE/Q4OKseeFV8aByw3h+VRnQm2zmbKgAxxe5WFj2DpkdN2G4n1uZTex4jnii08s5KSu/Ch05q0tWHB2lOPOlSfgb8SvgD2ORWD8kSdQ4+F65cXrVvu55IjuZaz8RD/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754339232; c=relaxed/simple; bh=k5iYYySHG/5Vfd/EFSgIWIBri0jYjQoozxrWTGCJIc8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=tqly6sDLbUooDq4VHQdOTAUPILogdQmL/HOwi3miGKdtvrezK6Sfaa0Y8e/ucUuUoEIhUPBLLhRNlyjOYpEYj2EnBeapZw80M1gsUSulkkE0Z1mfQ5py8qiMkORj3dkWXQOvyuy7qRvmiXQMAq42oVS0JWFHCdhPjL8Y1q2F11A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Jz81xEhX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Jz81xEhX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4C7FC4CEE7; Mon, 4 Aug 2025 20:27:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1754339232; bh=k5iYYySHG/5Vfd/EFSgIWIBri0jYjQoozxrWTGCJIc8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Jz81xEhXHgQTDGtffbAFiQrMddlJq+HKTHTbuSwG+khg7OC80YrMcEzbbz4n6c8C0 IMKUlfyKUrSQvKI9jvSTbtp42M+M6mtFuAUIcJeEbOXJm+M14gOO3TemuKsyPVbqxx k2IUQ3UfFH1YdxGsAfWddxjG63QNRM6dyM45isTWFFIPN5fS+O+kk+foEa0cPuV7p0 giqfltC+FXZ8NPLGAfJxP3J1J/SdNi35u+XA28PDROuGRZiucs6llc5zrnhxl7H24m k4rdTYhoTvrFmWqVopmLYM2HhKNHWzbedFx0Z+KTzvogyrEWgWMbXIgPbWMRrVwdVV WlWleDHgw59hQ== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Pu Lehui , bpf@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Puranjay Mohan , Palmer Dabbelt , Alexandre Ghiti , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Pu Lehui Subject: Re: [PATCH bpf-next 03/10] riscv, bpf: Extract emit_ldx() helper In-Reply-To: <20250719091730.2660197-4-pulehui@huaweicloud.com> References: <20250719091730.2660197-1-pulehui@huaweicloud.com> <20250719091730.2660197-4-pulehui@huaweicloud.com> Date: Mon, 04 Aug 2025 22:27:09 +0200 Message-ID: <87v7n23k9u.fsf@all.your.base.are.belong.to.us> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Pu Lehui writes: > From: Pu Lehui > > There's a lot of redundant code related to load into register > operations, let's extract emit_ldx() to make code more compact. > > Signed-off-by: Pu Lehui Reviewed-by: Bj=C3=B6rn T=C3=B6pel