[tip:WIP.x86/core 1/1] arch/sparc/include/asm/percpu_64.h:8:24: error: register name not specified for '__local_per_cpu_offset'
From: kernel test robot
Date: Wed Mar 19 2025 - 08:33:58 EST
Hi Ingo,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/core
head: 9262ee6499954dd387e4507e03b84512ab100706
commit: 9262ee6499954dd387e4507e03b84512ab100706 [1/1] compiler/gcc: Make asm() templates asm __inline__() by default
config: sparc64-randconfig-001-20250319 (https://download.01.org/0day-ci/archive/20250319/202503192048.nhPLafD5-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250319/202503192048.nhPLafD5-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503192048.nhPLafD5-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from <command-line>:
include/linux/compiler_types.h:479:29: error: expected '(' before '__inline'
# define asm_inline __asm__ __inline
^~~~~~~~
include/linux/compiler_types.h:480:19: note: in expansion of macro 'asm_inline'
# define asm(...) asm_inline(__VA_ARGS__)
^~~~~~~~~~
arch/sparc/include/asm/percpu_64.h:8:47: note: in expansion of macro 'asm'
register unsigned long __local_per_cpu_offset asm("g5");
^~~
In file included from arch/sparc/include/asm/percpu.h:5,
from include/linux/irqflags.h:19,
from include/asm-generic/cmpxchg-local.h:6,
from arch/sparc/include/asm/cmpxchg_64.h:111,
from arch/sparc/include/asm/cmpxchg.h:5,
from arch/sparc/include/asm/atomic_64.h:12,
from arch/sparc/include/asm/atomic.h:5,
from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/sparc/include/asm/bitops_64.h:52,
from arch/sparc/include/asm/bitops.h:5,
from include/linux/bitops.h:68,
from include/linux/log2.h:12,
from kernel/bounds.c:13:
>> arch/sparc/include/asm/percpu_64.h:8:24: error: register name not specified for '__local_per_cpu_offset'
register unsigned long __local_per_cpu_offset asm("g5");
^~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:102: kernel/bounds.s] Error 1 shuffle=3065905953
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1269: prepare0] Error 2 shuffle=3065905953
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:251: __sub-make] Error 2 shuffle=3065905953
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:251: __sub-make] Error 2 shuffle=3065905953
make: Target 'prepare' not remade because of errors.
vim +/__local_per_cpu_offset +8 arch/sparc/include/asm/percpu_64.h
f5e706ad886b6a include/asm-sparc/percpu_64.h Sam Ravnborg 2008-07-17 6
48017e5481ce85 arch/sparc/include/asm/percpu_64.h Peter Zijlstra 2020-05-29 7 #ifndef BUILD_VDSO
f5e706ad886b6a include/asm-sparc/percpu_64.h Sam Ravnborg 2008-07-17 @8 register unsigned long __local_per_cpu_offset asm("g5");
48017e5481ce85 arch/sparc/include/asm/percpu_64.h Peter Zijlstra 2020-05-29 9 #endif
f5e706ad886b6a include/asm-sparc/percpu_64.h Sam Ravnborg 2008-07-17 10
:::::: The code at line 8 was first introduced by commit
:::::: f5e706ad886b6a5eb59637830110b09ccebf01c5 sparc: join the remaining header files
:::::: TO: Sam Ravnborg <sam@xxxxxxxxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki