Hi Tim, kernel test robot noticed the following build errors: [auto build test ERROR on tip/x86/vmware] [also build test ERROR on tip/x86/tdx linus/master v6.10 next-20240726] [cannot apply to tip/x86/core] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Tim-Merrifield/Add-prctl-to-allow-userlevel-TDX-hypercalls/20240727-025221 base: tip/x86/vmware patch link: https://lore.kernel.org/r/651ceb5a89721621d522419e8a5d901632a78a22.1722019360.git.tim.merrifield%40broadcom.com patch subject: [PATCH v2 1/2] Add prctl to allow userlevel TDX hypercalls config: i386-buildonly-randconfig-003-20240727 (https://download.01.org/0day-ci/archive/20240727/202407271528.NcCDP6PG-lkp@xxxxxxxxx/config) compiler: gcc-8 (Ubuntu 8.4.0-3ubuntu2) 8.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240727/202407271528.NcCDP6PG-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/202407271528.NcCDP6PG-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): In file included from include/linux/kernel.h:23, from arch/x86/kernel/process.c:5: arch/x86/kernel/process.c: In function 'get_coco_user_hcall_mode': >> arch/x86/kernel/process.c:1041:25: error: 'mm_context_t' {aka 'struct <anonymous>'} has no member named 'flags' ¤t->mm->context.flags); ^ include/linux/bitops.h:45:37: note: in definition of macro 'bitop' __builtin_constant_p((uintptr_t)(addr) != (uintptr_t)NULL) && \ ^~~~ arch/x86/kernel/process.c:1040:10: note: in expansion of macro 'test_bit' return !test_bit(MM_CONTEXT_COCO_USER_HCALL, ^~~~~~~~ >> arch/x86/kernel/process.c:1041:25: error: 'mm_context_t' {aka 'struct <anonymous>'} has no member named 'flags' ¤t->mm->context.flags); ^ include/linux/bitops.h:46:16: note: in definition of macro 'bitop' (uintptr_t)(addr) != (uintptr_t)NULL && \ ^~~~ arch/x86/kernel/process.c:1040:10: note: in expansion of macro 'test_bit' return !test_bit(MM_CONTEXT_COCO_USER_HCALL, ^~~~~~~~ >> arch/x86/kernel/process.c:1041:25: error: 'mm_context_t' {aka 'struct <anonymous>'} has no member named 'flags' ¤t->mm->context.flags); ^ include/linux/bitops.h:47:50: note: in definition of macro 'bitop' __builtin_constant_p(*(const unsigned long *)(addr))) ? \ ^~~~ arch/x86/kernel/process.c:1040:10: note: in expansion of macro 'test_bit' return !test_bit(MM_CONTEXT_COCO_USER_HCALL, ^~~~~~~~ >> arch/x86/kernel/process.c:1041:25: error: 'mm_context_t' {aka 'struct <anonymous>'} has no member named 'flags' ¤t->mm->context.flags); ^ include/linux/bitops.h:48:17: note: in definition of macro 'bitop' const##op(nr, addr) : op(nr, addr)) ^~~~ arch/x86/kernel/process.c:1040:10: note: in expansion of macro 'test_bit' return !test_bit(MM_CONTEXT_COCO_USER_HCALL, ^~~~~~~~ >> arch/x86/kernel/process.c:1041:25: error: 'mm_context_t' {aka 'struct <anonymous>'} has no member named 'flags' ¤t->mm->context.flags); ^ include/linux/bitops.h:48:32: note: in definition of macro 'bitop' const##op(nr, addr) : op(nr, addr)) ^~~~ arch/x86/kernel/process.c:1040:10: note: in expansion of macro 'test_bit' return !test_bit(MM_CONTEXT_COCO_USER_HCALL, ^~~~~~~~ arch/x86/kernel/process.c: In function 'set_coco_user_hcall_mode': arch/x86/kernel/process.c:1048:25: error: 'mm_context_t' {aka 'struct <anonymous>'} has no member named 'flags' ¤t->mm->context.flags); ^ arch/x86/kernel/process.c:1051:27: error: 'mm_context_t' {aka 'struct <anonymous>'} has no member named 'flags' ¤t->mm->context.flags); ^ arch/x86/kernel/process.c: In function 'get_coco_user_hcall_mode': arch/x86/kernel/process.c:1042:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ vim +1041 arch/x86/kernel/process.c 1037 1038 static int get_coco_user_hcall_mode(void) 1039 { 1040 return !test_bit(MM_CONTEXT_COCO_USER_HCALL, > 1041 ¤t->mm->context.flags); 1042 } 1043 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki