[PATCH 1/3] vmlinux.lds.h: add _handle_arch_irq RUNTIME_CONST section

Guo Ren guoren at kernel.org
Mon Feb 23 18:01:57 PST 2026


On Fri, Feb 20, 2026 at 5:27 PM Jisheng Zhang <jszhang at kernel.org> wrote:
>
> We will use the runtime constant to optimize the handle_arch_irq
> accessing. This is preparation patch.
>
> Signed-off-by: Jisheng Zhang <jszhang at kernel.org>
> ---
>  include/asm-generic/vmlinux.lds.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
> index eeb070f330bd..c4af2c7d0eed 100644
> --- a/include/asm-generic/vmlinux.lds.h
> +++ b/include/asm-generic/vmlinux.lds.h
> @@ -973,7 +973,8 @@
>                 RUNTIME_CONST(shift, d_hash_shift)                      \
>                 RUNTIME_CONST(ptr, dentry_hashtable)                    \
>                 RUNTIME_CONST(ptr, __dentry_cache)                      \
> -               RUNTIME_CONST(ptr, __names_cache)
> +               RUNTIME_CONST(ptr, __names_cache)                       \
> +               RUNTIME_CONST(ptr, _handle_arch_irq)
>
>  /* Alignment must be consistent with (kunit_suite *) in include/kunit/test.h */
>  #define KUNIT_TABLE()                                                  \
> --
> 2.51.0
>
Reviewed by: Guo Ren (Alibaba Damo Academy) <guoren at kernel.org>

-- 
Best Regards
 Guo Ren



More information about the linux-arm-kernel mailing list