[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202211131254.qLr7pTn0-lkp@intel.com>
Date: Sun, 13 Nov 2022 12:15:29 +0800
From: kernel test robot <lkp@...el.com>
To: Chen Guokai <chenguokai17@...ls.ucas.ac.cn>,
paul.walmsley@...ive.com, palmer@...belt.com,
aou@...s.berkeley.edu, rostedt@...dmis.org, mingo@...hat.com,
sfr@...b.auug.org.au
Cc: oe-kbuild-all@...ts.linux.dev, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, liaochang1@...wei.com,
Chen Guokai <chenguokai17@...ls.ucas.ac.cn>
Subject: Re: [PATCH v4 4/8] riscv/kprobe: Add common RVI and RVC instruction
decoder code
Hi Chen,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.1-rc4 next-20221111]
[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/Chen-Guokai/Add-OPTPROBES-feature-on-RISCV/20221106-180613
patch link: https://lore.kernel.org/r/20221106100316.2803176-5-chenguokai17%40mails.ucas.ac.cn
patch subject: [PATCH v4 4/8] riscv/kprobe: Add common RVI and RVC instruction decoder code
config: riscv-randconfig-p002-20221113
compiler: riscv32-linux-gcc (GCC) 12.1.0
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://github.com/intel-lab-lkp/linux/commit/0c2329bee63280ee1d9f257ed71b15e84f575344
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Chen-Guokai/Add-OPTPROBES-feature-on-RISCV/20221106-180613
git checkout 0c2329bee63280ee1d9f257ed71b15e84f575344
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from arch/riscv/kernel/probes/uprobes.c:7:
>> arch/riscv/kernel/probes/decode-insn.h:19:27: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
19 | static inline u16 rvi_rs1(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:24:27: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
24 | static inline u16 rvi_rs2(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:29:26: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
29 | static inline u16 rvi_rd(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:34:35: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
34 | static inline s32 rvi_branch_imme(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:46:32: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
46 | static inline s32 rvi_jal_imme(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:59:29: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
59 | static inline u16 rvc_r_rs1(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:64:29: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
64 | static inline u16 rvc_r_rs2(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:69:28: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
69 | static inline u16 rvc_r_rd(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:74:29: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
74 | static inline u16 rvc_i_rs1(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:79:28: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
79 | static inline u16 rvc_i_rd(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:84:30: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
84 | static inline u16 rvc_ss_rs2(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:89:28: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
89 | static inline u16 rvc_l_rd(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:94:28: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
94 | static inline u16 rvc_l_rs(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:99:29: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
99 | static inline u16 rvc_s_rs2(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:104:29: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
104 | static inline u16 rvc_s_rs1(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:109:29: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
109 | static inline u16 rvc_a_rs2(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:114:29: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
114 | static inline u16 rvc_a_rs1(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:119:28: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
119 | static inline u16 rvc_a_rd(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:124:28: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
124 | static inline u16 rvc_b_rd(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:129:28: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
129 | static inline u16 rvc_b_rs(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:134:35: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
134 | static inline s32 rvc_branch_imme(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
arch/riscv/kernel/probes/decode-insn.h:147:32: error: unknown type name 'kprobe_opcode_t'; did you mean 'uprobe_opcode_t'?
147 | static inline s32 rvc_jal_imme(kprobe_opcode_t opcode)
| ^~~~~~~~~~~~~~~
| uprobe_opcode_t
vim +19 arch/riscv/kernel/probes/decode-insn.h
18
> 19 static inline u16 rvi_rs1(kprobe_opcode_t opcode)
20 {
21 return (u16)((opcode >> 15) & 0x1f);
22 }
23
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (153709 bytes)
Powered by blists - more mailing lists