oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [yiliu1765-iommufd:report_group_id 3/4] drivers/s390/crypto/vfio_ap_ops.c:1757:9: error: 'ret' undeclared; did you mean 'net'?
@ 2023-04-10 18:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-10 18:49 UTC (permalink / raw)
  To: Yi Liu, Kevin Tian; +Cc: oe-kbuild-all

tree:   https://github.com/yiliu1765/iommufd.git report_group_id
head:   57cbf428d04231ccaf608b7b2f9eb1d8a77e1ac9
commit: ff4b8bee90761961041126305183a9a7e0f0542d [3/4] vfio: Report group_id to user
config: s390-defconfig (https://download.01.org/0day-ci/archive/20230411/202304110242.lPmMNLqX-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.1.0
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
        # https://github.com/yiliu1765/iommufd/commit/ff4b8bee90761961041126305183a9a7e0f0542d
        git remote add yiliu1765-iommufd https://github.com/yiliu1765/iommufd.git
        git fetch --no-tags yiliu1765-iommufd report_group_id
        git checkout ff4b8bee90761961041126305183a9a7e0f0542d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash drivers/s390/crypto/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304110242.lPmMNLqX-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/s390/crypto/vfio_ap_ops.c: In function 'vfio_ap_mdev_get_device_info':
>> drivers/s390/crypto/vfio_ap_ops.c:1757:9: error: 'ret' undeclared (first use in this function); did you mean 'net'?
    1757 |         ret =vfio_device_info_add_group_cap(vdev, &caps);
         |         ^~~
         |         net
   drivers/s390/crypto/vfio_ap_ops.c:1757:9: note: each undeclared identifier is reported only once for each function it appears in


vim +1757 drivers/s390/crypto/vfio_ap_ops.c

  1737	
  1738	static int vfio_ap_mdev_get_device_info(struct vfio_device *vdev,
  1739						unsigned long arg)
  1740	{
  1741		struct vfio_info_cap caps = { .buf = NULL, .size = 0 };
  1742		unsigned long minsz;
  1743		struct vfio_device_info info;
  1744	
  1745		minsz = offsetofend(struct vfio_device_info, num_irqs);
  1746	
  1747		if (copy_from_user(&info, (void __user *)arg, minsz))
  1748			return -EFAULT;
  1749	
  1750		if (info.argsz < minsz)
  1751			return -EINVAL;
  1752	
  1753		info.flags = VFIO_DEVICE_FLAGS_AP | VFIO_DEVICE_FLAGS_RESET;
  1754		info.num_regions = 0;
  1755		info.num_irqs = 0;
  1756	
> 1757		ret =vfio_device_info_add_group_cap(vdev, &caps);
  1758		if (ret)
  1759			return ret;
  1760	
  1761		ret = vfio_device_info_copy_caps(&info, &caps,
  1762						 (struct vfio_device_info __user *)arg);
  1763		if (ret)
  1764			return ret;
  1765	
  1766		return copy_to_user((void __user *)arg, &info, minsz) ? -EFAULT : 0;
  1767	}
  1768	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-04-10 18:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10 18:49 [yiliu1765-iommufd:report_group_id 3/4] drivers/s390/crypto/vfio_ap_ops.c:1757:9: error: 'ret' undeclared; did you mean 'net'? 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).