[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202221419.DMC8nDHf-lkp@intel.com>
Date: Tue, 22 Feb 2022 14:41:54 +0800
From: kernel test robot <lkp@...el.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [peterz-queue:x86/wip.ibt 31/39] arch/x86/xen/enlighten_pv.c:627:2:
error: use of undeclared identifier 'asm_exc_control_protection'; did you
mean 'asm_exc_general_protection'?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip.ibt
head: 1436dce5f32d577e8cef693e09f4bb1faa0e2692
commit: 3c80adbe1204e92a048cb149b966c2a990c89ec6 [31/39] x86/ibt,xen: Annotate away warnings
config: x86_64-randconfig-a011-20220221 (https://download.01.org/0day-ci/archive/20220222/202202221419.DMC8nDHf-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=3c80adbe1204e92a048cb149b966c2a990c89ec6
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/wip.ibt
git checkout 3c80adbe1204e92a048cb149b966c2a990c89ec6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> arch/x86/xen/enlighten_pv.c:627:2: error: use of undeclared identifier 'asm_exc_control_protection'; did you mean 'asm_exc_general_protection'?
TRAP_ENTRY(exc_control_protection, false ),
^
arch/x86/xen/enlighten_pv.c:592:11: note: expanded from macro 'TRAP_ENTRY'
.orig = asm_##func, \
^
<scratch space>:77:1: note: expanded from here
asm_exc_control_protection
^
arch/x86/include/asm/idtentry.h:564:1: note: 'asm_exc_general_protection' declared here
DECLARE_IDTENTRY_ERRORCODE(X86_TRAP_GP, exc_general_protection);
^
arch/x86/include/asm/idtentry.h:83:18: note: expanded from macro 'DECLARE_IDTENTRY_ERRORCODE'
asmlinkage void asm_##func(void); \
^
<scratch space>:35:1: note: expanded from here
asm_exc_general_protection
^
>> arch/x86/xen/enlighten_pv.c:627:2: error: use of undeclared identifier 'xen_asm_exc_control_protection'; did you mean 'xen_asm_exc_general_protection'?
TRAP_ENTRY(exc_control_protection, false ),
^
arch/x86/xen/enlighten_pv.c:593:10: note: expanded from macro 'TRAP_ENTRY'
.xen = xen_asm_##func, \
^
<scratch space>:78:1: note: expanded from here
xen_asm_exc_control_protection
^
arch/x86/include/asm/idtentry.h:564:1: note: 'xen_asm_exc_general_protection' declared here
DECLARE_IDTENTRY_ERRORCODE(X86_TRAP_GP, exc_general_protection);
^
arch/x86/include/asm/idtentry.h:84:18: note: expanded from macro 'DECLARE_IDTENTRY_ERRORCODE'
asmlinkage void xen_asm_##func(void); \
^
<scratch space>:36:1: note: expanded from here
xen_asm_exc_general_protection
^
arch/x86/xen/enlighten_pv.c:1184:34: warning: no previous prototype for function 'xen_start_kernel' [-Wmissing-prototypes]
asmlinkage __visible void __init xen_start_kernel(void)
^
arch/x86/xen/enlighten_pv.c:1184:22: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage __visible void __init xen_start_kernel(void)
^
static
1 warning and 2 errors generated.
vim +627 arch/x86/xen/enlighten_pv.c
590
591 #define TRAP_ENTRY(func, ist_ok) { \
592 .orig = asm_##func, \
593 .xen = xen_asm_##func, \
594 .ist_okay = ist_ok }
595
596 #define TRAP_ENTRY_REDIR(func, ist_ok) { \
597 .orig = asm_##func, \
598 .xen = xen_asm_xenpv_##func, \
599 .ist_okay = ist_ok }
600
601 static struct trap_array_entry trap_array[] = {
602 TRAP_ENTRY_REDIR(exc_debug, true ),
603 TRAP_ENTRY_REDIR(exc_double_fault, true ),
604 #ifdef CONFIG_X86_MCE
605 TRAP_ENTRY_REDIR(exc_machine_check, true ),
606 #endif
607 TRAP_ENTRY_REDIR(exc_nmi, true ),
608 TRAP_ENTRY(exc_int3, false ),
609 TRAP_ENTRY(exc_overflow, false ),
610 #ifdef CONFIG_IA32_EMULATION
611 { entry_INT80_compat, xen_entry_INT80_compat, false },
612 #endif
613 TRAP_ENTRY(exc_page_fault, false ),
614 TRAP_ENTRY(exc_divide_error, false ),
615 TRAP_ENTRY(exc_bounds, false ),
616 TRAP_ENTRY(exc_invalid_op, false ),
617 TRAP_ENTRY(exc_device_not_available, false ),
618 TRAP_ENTRY(exc_coproc_segment_overrun, false ),
619 TRAP_ENTRY(exc_invalid_tss, false ),
620 TRAP_ENTRY(exc_segment_not_present, false ),
621 TRAP_ENTRY(exc_stack_segment, false ),
622 TRAP_ENTRY(exc_general_protection, false ),
623 TRAP_ENTRY(exc_spurious_interrupt_bug, false ),
624 TRAP_ENTRY(exc_coprocessor_error, false ),
625 TRAP_ENTRY(exc_alignment_check, false ),
626 TRAP_ENTRY(exc_simd_coprocessor_error, false ),
> 627 TRAP_ENTRY(exc_control_protection, false ),
628 };
629
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists