From: kernel test robot <lkp@intel.com>
To: Guo Ren <guoren@linux.alibaba.com>
Cc: kbuild-all@lists.01.org,
"Linux Memory Management List" <linux-mm@kvack.org>,
"Palmer Dabbelt" <palmerdabbelt@google.com>,
"Patrick Stählin" <me@packi.ch>,
"Pekka Enberg" <penberg@kernel.org>
Subject: [linux-next:master 3526/6048] arch/riscv/kernel/probes/decode-insn.c:19:31: sparse: sparse: cast to restricted __le32
Date: Fri, 5 Feb 2021 12:30:15 +0800 [thread overview]
Message-ID: <202102051209.VjTQpNf1-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1958 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 59fa6a163ffabc1bf25c5e0e33899e268a96d3cc
commit: c22b0bcb1dd024cb9caad9230e3a387d8b061df5 [3526/6048] riscv: Add kprobes supported
config: riscv-randconfig-s031-20210204 (attached as .config)
compiler: riscv64-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-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=c22b0bcb1dd024cb9caad9230e3a387d8b061df5
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 c22b0bcb1dd024cb9caad9230e3a387d8b061df5
# 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: 32818 bytes --]
reply other threads:[~2021-02-05 4:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202102051209.VjTQpNf1-lkp@intel.com \
--to=lkp@intel.com \
--cc=guoren@linux.alibaba.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=me@packi.ch \
--cc=palmerdabbelt@google.com \
--cc=penberg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox