Messages in this thread | | | Date | Thu, 24 Feb 2022 23:40:58 +0800 | From | kernel test robot <> | Subject | [csky-linux:riscv_compat_v6 13/20] arch/riscv/kernel/process.c:102:35: error: use of undeclared identifier 'SR_UXL' |
| |
tree: https://github.com/c-sky/csky-linux riscv_compat_v6 head: 4aafa1859382d5a159bdafe2956453feafd38845 commit: 4cebbf9e791522be5b6e7cea289ab1c43c66cbc0 [13/20] riscv: compat: process: Add UXL_32 support in start_thread config: riscv-buildonly-randconfig-r003-20220223 (https://download.01.org/0day-ci/archive/20220224/202202242346.yPxgaryD-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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/c-sky/csky-linux/commit/4cebbf9e791522be5b6e7cea289ab1c43c66cbc0 git remote add csky-linux https://github.com/c-sky/csky-linux git fetch --no-tags csky-linux riscv_compat_v6 git checkout 4cebbf9e791522be5b6e7cea289ab1c43c66cbc0 # 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=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/riscv/kernel/process.c:101:6: error: implicit declaration of function 'is_compat_task' [-Werror,-Wimplicit-function-declaration] if (is_compat_task()) ^ >> arch/riscv/kernel/process.c:102:35: error: use of undeclared identifier 'SR_UXL' regs->status = (regs->status & ~SR_UXL) | SR_UXL_32; ^ >> arch/riscv/kernel/process.c:102:45: error: use of undeclared identifier 'SR_UXL_32' regs->status = (regs->status & ~SR_UXL) | SR_UXL_32; ^ arch/riscv/kernel/process.c:104:35: error: use of undeclared identifier 'SR_UXL' regs->status = (regs->status & ~SR_UXL) | SR_UXL_64; ^ >> arch/riscv/kernel/process.c:104:45: error: use of undeclared identifier 'SR_UXL_64' regs->status = (regs->status & ~SR_UXL) | SR_UXL_64; ^ 5 errors generated.
vim +/SR_UXL +102 arch/riscv/kernel/process.c
85 86 void start_thread(struct pt_regs *regs, unsigned long pc, 87 unsigned long sp) 88 { 89 regs->status = SR_PIE; 90 if (has_fpu()) { 91 regs->status |= SR_FS_INITIAL; 92 /* 93 * Restore the initial value to the FP register 94 * before starting the user program. 95 */ 96 fstate_restore(current, regs); 97 } 98 regs->epc = pc; 99 regs->sp = sp; 100 101 if (is_compat_task()) > 102 regs->status = (regs->status & ~SR_UXL) | SR_UXL_32; 103 else > 104 regs->status = (regs->status & ~SR_UXL) | SR_UXL_64; 105 } 106
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |