[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250623092510.11264A74-hca@linux.ibm.com>
Date: Mon, 23 Jun 2025 11:25:10 +0200
From: Heiko Carstens <hca@...ux.ibm.com>
To: Petr Pavlu <petr.pavlu@...e.com>
Cc: Vasily Gorbik <gor@...ux.ibm.com>,
Alexander Gordeev <agordeev@...ux.ibm.com>,
Christian Borntraeger <borntraeger@...ux.ibm.com>,
Sven Schnelle <svens@...ux.ibm.com>, linux-s390@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] s390/boot: Use -D__DISABLE_EXPORTS
On Fri, Jun 20, 2025 at 05:45:49PM +0200, Petr Pavlu wrote:
> Files in the arch/s390/boot directory reuse logic from the rest of the
> kernel by including certain C and assembly files from the kernel and lib
> directories. Some of these included files contain EXPORT_SYMBOL directives.
> For instance, arch/s390/boot/cmdline.c includes lib/cmdline.c, which
> exports the get_option() function.
>
> This inclusion triggers genksyms processing for the files in
> arch/s390/boot, which is unnecessary and slows down the build.
> Additionally, when KBUILD_SYMTYPES=1 is set, the generated symtypes data
> contain exported symbols that are duplicated with the main kernel. This
> duplication can confuse external kABI tools that process the symtypes data.
>
> Address this issue by compiling the files in arch/s390/boot with
> -D__DISABLE_EXPORTS.
>
> Signed-off-by: Petr Pavlu <petr.pavlu@...e.com>
> ---
> arch/s390/boot/Makefile | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Heiko Carstens <hca@...ux.ibm.com>
Powered by blists - more mailing lists