[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240816104132.GB23304@willie-the-truck>
Date: Fri, 16 Aug 2024 11:41:32 +0100
From: Will Deacon <will@...nel.org>
To: Jann Horn <jannh@...gle.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Catalin Marinas <catalin.marinas@....com>,
Heiko Carstens <hca@...ux.ibm.com>,
Vasily Gorbik <gor@...ux.ibm.com>,
Alexander Gordeev <agordeev@...ux.ibm.com>,
Christian Borntraeger <borntraeger@...ux.ibm.com>,
Sven Schnelle <svens@...ux.ibm.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-s390@...r.kernel.org, linux-arch@...r.kernel.org
Subject: Re: [PATCH] runtime constants: move list of constants to
vmlinux.lds.h
On Tue, Jul 30, 2024 at 10:15:16PM +0200, Jann Horn wrote:
> Refactor the list of constant variables into a macro.
> This should make it easier to add more constants in the future.
>
> Signed-off-by: Jann Horn <jannh@...gle.com>
> ---
> I'm not sure whose tree this has to go through - I guess Arnd's?
> ---
> arch/arm64/kernel/vmlinux.lds.S | 3 +--
> arch/s390/kernel/vmlinux.lds.S | 3 +--
> arch/x86/kernel/vmlinux.lds.S | 3 +--
> include/asm-generic/vmlinux.lds.h | 4 ++++
> 4 files changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
> index 55a8e310ea12..58d89d997d05 100644
> --- a/arch/arm64/kernel/vmlinux.lds.S
> +++ b/arch/arm64/kernel/vmlinux.lds.S
> @@ -261,14 +261,13 @@ SECTIONS
> *(.init.altinstructions .init.bss) /* from the EFI stub */
> }
> .exit.data : {
> EXIT_DATA
> }
>
> - RUNTIME_CONST(shift, d_hash_shift)
> - RUNTIME_CONST(ptr, dentry_hashtable)
> + RUNTIME_CONST_VARIABLES
>
> PERCPU_SECTION(L1_CACHE_BYTES)
> HYPERVISOR_PERCPU_SECTION
>
> HYPERVISOR_RELOC_SECTION
Acked-by: Will Deacon <will@...nel.org>
I'm assuming Arnd will pick this up.
Will
Powered by blists - more mailing lists