From: kernel test robot <lkp@intel.com>
To: Jeremy Kerr <jk@codeconstruct.com.au>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: net/mctp/af_mctp.c:259:6: error: unexpected token, expected comma
Date: Wed, 19 Jan 2022 20:13:55 +0800 [thread overview]
Message-ID: <202201192005.O7wDT8RE-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1d1df41c5a33359a00e919d54eaebfb789711fdc
commit: 99ce45d5e7dbde399997a630f45ac9f654fa4bcc mctp: Implement extended addressing
date: 3 months ago
config: mips-randconfig-r003-20220118 (https://download.01.org/0day-ci/archive/20220119/202201192005.O7wDT8RE-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5f782d25a742302d25ef3c8b84b54f7483c2deb9)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=99ce45d5e7dbde399997a630f45ac9f654fa4bcc
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 99ce45d5e7dbde399997a630f45ac9f654fa4bcc
# 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=mips SHELL=/bin/bash drivers/cxl/ mm// net/
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 >>):
>> net/mctp/af_mctp.c:259:6: error: unexpected token, expected comma
if (get_user(len, optlen))
^
arch/mips/include/asm/uaccess.h:138:33: note: expanded from macro 'get_user'
access_ok(__p, sizeof(*__p)) ? __get_user((x), __p) : \
^
arch/mips/include/asm/uaccess.h:224:23: note: expanded from macro '__get_user'
__get_data_asm((x), user_lw, __gu_ptr); \
^
<inline asm>:3:10: note: instantiated into assembly here
.set eva
^
>> net/mctp/af_mctp.c:259:6: error: invalid operand for instruction
if (get_user(len, optlen))
^
arch/mips/include/asm/uaccess.h:138:33: note: expanded from macro 'get_user'
access_ok(__p, sizeof(*__p)) ? __get_user((x), __p) : \
^
arch/mips/include/asm/uaccess.h:224:23: note: expanded from macro '__get_user'
__get_data_asm((x), user_lw, __gu_ptr); \
^
<inline asm>:4:10: note: instantiated into assembly here
lwe $2, 0($20)
^
2 errors generated.
vim +259 net/mctp/af_mctp.c
249
250 static int mctp_getsockopt(struct socket *sock, int level, int optname,
251 char __user *optval, int __user *optlen)
252 {
253 struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk);
254 int len, val;
255
256 if (level != SOL_MCTP)
257 return -EINVAL;
258
> 259 if (get_user(len, optlen))
260 return -EFAULT;
261
262 if (optname == MCTP_OPT_ADDR_EXT) {
263 if (len != sizeof(int))
264 return -EINVAL;
265 val = !!msk->addr_ext;
266 if (copy_to_user(optval, &val, len))
267 return -EFAULT;
268 return 0;
269 }
270
271 return -EINVAL;
272 }
273
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-01-19 12:14 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=202201192005.O7wDT8RE-lkp@intel.com \
--to=lkp@intel.com \
--cc=jk@codeconstruct.com.au \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/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
Powered by JetHome