tree:
https://git.kernel.org/pub/scm/linux/kernel/git/joro/linux.git sev-es-client-tip
head: 930a5888b97023e3bc1e3ca50074356b3ce23718
commit: b92776535e948f1631735a891918ad3e43e04563 [36/75] x86/head/64: Move early exception
dispatch to C code
config: x86_64-rhel-7.6-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout b92776535e948f1631735a891918ad3e43e04563
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> arch/x86/kernel/head64.c:389:20: error: conflicting types for
'early_make_pgtable'
389 | static bool __init
early_make_pgtable(unsigned long address)
| ^~~~~~~~~~~~~~~~~~
In file included from arch/x86/kernel/head64.c:28:
arch/x86/include/asm/setup.h:52:12: note: previous declaration of
'early_make_pgtable' was here
52 | extern int early_make_pgtable(unsigned long address);
| ^~~~~~~~~~~~~~~~~~
arch/x86/kernel/head64.c:399:13: warning: no previous prototype for
'do_early_exception' [-Wmissing-prototypes]
399 | void __init do_early_exception(struct pt_regs *regs, int trapnr)
| ^~~~~~~~~~~~~~~~~~
vim +/early_make_pgtable +389 arch/x86/kernel/head64.c
388
389 static bool __init early_make_pgtable(unsigned long address)
390 {
391 unsigned long physaddr = address - __PAGE_OFFSET;
392 pmdval_t pmd;
393
394 pmd = (physaddr & PMD_MASK) + early_pmd_flags;
395
396 return __early_make_pgtable(address, pmd);
397 }
398
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org