All of lore.kernel.org
 help / color / mirror / Atom feed
* [csky-linux:linux-next-riscv-optprobe 5/8] arch/riscv/kernel/probes/decode-insn.c:19:31: sparse: sparse: cast to restricted __le32
@ 2020-07-31 22:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-31 22:41 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2195 bytes --]

Hi Guo,

First bad commit (maybe != root cause):

tree:   https://github.com/c-sky/csky-linux linux-next-riscv-optprobe
head:   db7e958a1860da6c865994602526cedf0368e4e5
commit: 332f9b6ac7dc75c6eb21e5b01f0b0ba0a9950fe1 [5/8] riscv: Add uprobes supported
config: riscv-randconfig-s032-20200731 (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.2-115-g5fc204f2-dirty
        git checkout 332f9b6ac7dc75c6eb21e5b01f0b0ba0a9950fe1
        # 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

vim +19 arch/riscv/kernel/probes/decode-insn.c

6c46ab88f7a6c29 Guo Ren 2020-06-30  11  
6c46ab88f7a6c29 Guo Ren 2020-06-30  12  /* Return:
6c46ab88f7a6c29 Guo Ren 2020-06-30  13   *   INSN_REJECTED     If instruction is one not allowed to kprobe,
6c46ab88f7a6c29 Guo Ren 2020-06-30  14   *   INSN_GOOD_NO_SLOT If instruction is supported but doesn't use its slot.
6c46ab88f7a6c29 Guo Ren 2020-06-30  15   */
6c46ab88f7a6c29 Guo Ren 2020-06-30  16  enum probe_insn __kprobes
6c46ab88f7a6c29 Guo Ren 2020-06-30  17  riscv_probe_decode_insn(probe_opcode_t *addr, struct arch_probe_insn *api)
6c46ab88f7a6c29 Guo Ren 2020-06-30  18  {
6c46ab88f7a6c29 Guo Ren 2020-06-30 @19  	probe_opcode_t insn = le32_to_cpu(*addr);

:::::: The code at line 19 was first introduced by commit
:::::: 6c46ab88f7a6c29fa61fa951ee8392fd9e857307 riscv: Add kprobes supported

:::::: TO: Guo Ren <guoren@linux.alibaba.com>
:::::: CC: Guo Ren <guoren@linux.alibaba.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28843 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-31 22:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 22:41 [csky-linux:linux-next-riscv-optprobe 5/8] arch/riscv/kernel/probes/decode-insn.c:19:31: sparse: sparse: cast to restricted __le32 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.