Re: [PATCH] lib/Kconfig.debug: add ARCH dependency for FUNCTION_ALIGN option
From: Andrew Morton
Date: Thu Mar 03 2022 - 20:46:17 EST
On Thu, 3 Mar 2022 16:20:48 +0800 Feng Tang <feng.tang@xxxxxxxxx> wrote:
> 0Day robots reported there is compiling issue for 'csky' ARCH
> when CONFIG_DEBUG_FORCE_DATA_SECTION_ALIGNED is enabled [1]:
>
> ...
>
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -401,8 +401,8 @@ config SECTION_MISMATCH_WARN_ONLY
> If unsure, say Y.
>
> config DEBUG_FORCE_FUNCTION_ALIGN_64B
> - bool "Force all function address 64B aligned" if EXPERT
> - depends on PPC || ARM || X86
I cannot find a kernel which contains the above line?
> + bool "Force all function address 64B aligned"
> + depends on EXPERT && (X86_64 || ARM64 || PPC32 || PPC64 || ARC)
> help
> There are cases that a commit from one domain changes the function
> address alignment of other domains, and cause magic performance