Re: [PATCH tip] x86/percpu: Use C for arch_raw_cpu_ptr()
From: Uros Bizjak
Date: Tue Oct 10 2023 - 00:39:29 EST
On Mon, Oct 9, 2023 at 10:31 PM Uros Bizjak <ubizjak@xxxxxxxxx> wrote:
>
> Implementing arch_raw_cpu_ptr() in C, allows the compiler to perform
> better optimizations, such as setting an appropriate base to compute
> the address instead of an add instruction.
Oops, please disregard this patch. It is a previous version, and now
will fail compilation with KASAN. The new arch_raw_cpu_ptr should
depend on CONFIG_USE_X86_SEG_SUPPORT, not CONFIG_CC_HAS_NAMED_AS.
I will send a v2 after some more testing.
Uros.