tree:
https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git sev-es-client-tip
head: 57349dbe54433697c5b96bd5d8b5bd7499754d2b
commit: 368e0d04d5c41fcf565feccb51c3355ae0f3090a [34/76] x86/head/64: Make fixup_pointer()
static inline
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 368e0d04d5c41fcf565feccb51c3355ae0f3090a
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the joro/sev-es-client-tip HEAD 57349dbe54433697c5b96bd5d8b5bd7499754d2b builds
fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from arch/x86/kernel/head32.c:15:
arch/x86/include/asm/setup.h: In function 'fixup_pointer':
> arch/x86/include/asm/setup.h:77:23: error: '_text'
undeclared (first use in this function)
77 | return ptr - (void *)_text +
(void *)physaddr;
| ^~~~~
arch/x86/include/asm/setup.h:77:23: note: each undeclared identifier is reported only
once for each function it appears in
arch/x86/kernel/head32.c: At top level:
arch/x86/kernel/head32.c:72:13: warning: no previous prototype for
'mk_early_pgtbl_32' [-Wmissing-prototypes]
72 | void __init mk_early_pgtbl_32(void)
| ^~~~~~~~~~~~~~~~~
--
In file included from arch/x86/kernel/platform-quirks.c:5:
arch/x86/include/asm/setup.h: In function 'fixup_pointer':
> arch/x86/include/asm/setup.h:77:23: error: '_text'
undeclared (first use in this function)
77 | return ptr - (void *)_text +
(void *)physaddr;
| ^~~~~
arch/x86/include/asm/setup.h:77:23: note: each undeclared identifier is reported only
once for each function it appears in
vim +/_text +77 arch/x86/include/asm/setup.h
69
70 /*
71 * This function is used in C code that runs while the kernel still runs on
72 * identity mapped addresses to get the correct address of kernel pointers in
73 * the identity mapping.
74 */
75 static __always_inline void *fixup_pointer(void *ptr, unsigned long physaddr)
76 {
77 return ptr - (void *)_text + (void *)physaddr;
78 }
79
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org