]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
lib/Kconfig.debug: add ARCH dependency for FUNCTION_ALIGN option
authorFeng Tang <feng.tang@intel.com>
Wed, 23 Mar 2022 23:05:50 +0000 (16:05 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:40:52 +0000 (14:40 +0200)
commitaec35162d15fd00b77e4e08bd71f752554f7f1b6
treed49201f9fe4815aba918e98416fb7adcf64912ae
parentae928bcc2f15b2c78744b8b514f8a8b5e9992eff
lib/Kconfig.debug: add ARCH dependency for FUNCTION_ALIGN option

BugLink: https://bugs.launchpad.net/bugs/1969107
[ Upstream commit 1bf18da62106225dbc47aab41efee2aeb99caccd ]

0Day robots reported there is compiling issue for 'csky' ARCH when
CONFIG_DEBUG_FORCE_DATA_SECTION_ALIGNED is enabled [1]:

All errors (new ones prefixed by >>):

   {standard input}: Assembler messages:
>> {standard input}:2277: Error: pcrel offset for branch to .LS000B too far (0x3c)

Which was discussed in [2].  And as there is no solution for csky yet, add
some dependency for this config to limit it to several ARCHs which have no
compiling issue so far.

[1]. https://lore.kernel.org/lkml/202202271612.W32UJAj2-lkp@intel.com/
[2]. https://www.spinics.net/lists/linux-kbuild/msg30298.html

Link: https://lkml.kernel.org/r/20220304021100.GN4548@shbuild999.sh.intel.com
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Feng Tang <feng.tang@intel.com>
Cc: Guo Ren <guoren@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 9d849449d28f8a148a27f275581059d3ea8b2a79)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
lib/Kconfig.debug