[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aH5PypjBVdzVxxlo@willie-the-truck>
Date: Mon, 21 Jul 2025 15:33:46 +0100
From: Will Deacon <will@...nel.org>
To: Sami Tolvanen <samitolvanen@...gle.com>
Cc: bpf@...r.kernel.org, Puranjay Mohan <puranjay@...nel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Catalin Marinas <catalin.marinas@....com>,
Andrii Nakryiko <andrii@...nel.org>,
Mark Rutland <mark.rutland@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Maxwell Bland <mbland@...orola.com>
Subject: Re: [PATCH bpf-next v11 2/3] cfi: Move BPF CFI types and helpers to
generic code
On Fri, Jul 18, 2025 at 10:33:48PM +0000, Sami Tolvanen wrote:
> Instead of duplicating the same code for each architecture, move
> the CFI type hash variables for BPF function types and related
> helper functions to generic CFI code, and allow architectures to
> override the function definitions if needed.
>
> Signed-off-by: Sami Tolvanen <samitolvanen@...gle.com>
> ---
> arch/riscv/include/asm/cfi.h | 16 ------------
> arch/riscv/kernel/cfi.c | 24 ------------------
> arch/x86/include/asm/cfi.h | 10 ++------
> arch/x86/kernel/alternative.c | 12 ---------
> include/linux/cfi.h | 47 +++++++++++++++++++++++++++++------
> kernel/cfi.c | 15 +++++++++++
> 6 files changed, 56 insertions(+), 68 deletions(-)
Thanks, Sami, I like the look of this now.
If you can get the kbuild robot on board too, then I think we're good to
go!
Will
Powered by blists - more mailing lists