* [linux-next:master 2196/3956] arch/riscv/kernel/probes/decode-insn.c:19:31: sparse: sparse: cast to restricted __le32
@ 2021-01-15 10:19 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-15 10:19 UTC (permalink / raw)
To: Guo Ren
Cc: kbuild-all, Linux Memory Management List, Palmer Dabbelt,
Patrick Stählin, Pekka Enberg
[-- Attachment #1: Type: text/plain, Size: 1958 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b3a3cbdec55b090d22a09f75efb7c7d34cb97f25
commit: ee61fd55dbcecb65f7abcf012b342e60c44c92a5 [2196/3956] riscv: Add kprobes supported
config: riscv-randconfig-s032-20210115 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ee61fd55dbcecb65f7abcf012b342e60c44c92a5
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout ee61fd55dbcecb65f7abcf012b342e60c44c92a5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
>> arch/riscv/kernel/probes/decode-insn.c:19:31: sparse: sparse: cast to restricted __le32
--
>> arch/riscv/kernel/probes/kprobes.c:60:21: sparse: sparse: cast to restricted __le32
vim +19 arch/riscv/kernel/probes/decode-insn.c
11
12 /* Return:
13 * INSN_REJECTED If instruction is one not allowed to kprobe,
14 * INSN_GOOD_NO_SLOT If instruction is supported but doesn't use its slot.
15 */
16 enum probe_insn __kprobes
17 riscv_probe_decode_insn(probe_opcode_t *addr, struct arch_probe_insn *api)
18 {
> 19 probe_opcode_t insn = le32_to_cpu(*addr);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35030 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-15 10:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-15 10:19 [linux-next:master 2196/3956] arch/riscv/kernel/probes/decode-insn.c:19:31: sparse: sparse: cast to restricted __le32 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).