All of lore.kernel.org
 help / color / mirror / Atom feed
* net/mctp/af_mctp.c:259:6: error: unexpected token, expected comma
@ 2022-01-19 12:13 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-19 12:13 UTC (permalink / raw)
  To: Jeremy Kerr; +Cc: llvm, kbuild-all, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* net/mctp/af_mctp.c:259:6: error: unexpected token, expected comma
@ 2022-01-19 12:13 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-19 12:13 UTC (permalink / raw)
  To: kbuild-all

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

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(a)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(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-19 12:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19 12:13 net/mctp/af_mctp.c:259:6: error: unexpected token, expected comma kernel test robot
2022-01-19 12:13 ` 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.