From: kernel test robot <lkp@intel.com> To: Christoph Hellwig <hch@lst.de> Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [hch-misc:i915-mdev 40/40] drivers/vfio/vfio.c:1649:24: sparse: sparse: incorrect type in return expression (different base types) Date: Sun, 25 Jul 2021 06:00:52 +0800 [thread overview] Message-ID: <202107250650.2VfKOoW6-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 2500 bytes --] tree: git://git.infradead.org/users/hch/misc.git i915-mdev head: 3e7e1da34feaeb5473f397c9cab73b4eb7f6a33c commit: 3e7e1da34feaeb5473f397c9cab73b4eb7f6a33c [40/40] vfio: improve vfio_group_get_external_user config: sparc64-randconfig-s031-20210725 (attached as .config) compiler: sparc64-linux-gcc (GCC) 10.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-341-g8af24329-dirty git remote add hch-misc git://git.infradead.org/users/hch/misc.git git fetch --no-tags hch-misc i915-mdev git checkout 3e7e1da34feaeb5473f397c9cab73b4eb7f6a33c # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc64 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 >>) >> drivers/vfio/vfio.c:1649:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected struct vfio_group * @@ got int @@ drivers/vfio/vfio.c:1649:24: sparse: expected struct vfio_group * drivers/vfio/vfio.c:1649:24: sparse: got int vim +1649 drivers/vfio/vfio.c 1630 1631 /** 1632 * vfio_group_container_acquire_fd - acquire access to a VFIO container 1633 * by file descriptor 1634 * @fd: file descriptor to access 1635 * 1636 * Grab a reference to the VFIO container used by the VFIO group pointed to by 1637 * @fd. 1638 * 1639 * Returns the VFIO group on success or an error pointer. 1640 */ 1641 struct vfio_group *vfio_group_container_acquire_fd(int fd) 1642 { 1643 struct vfio_group *group; 1644 struct fd f; 1645 int ret = -EINVAL; 1646 1647 f = fdget(fd); 1648 if (!f.file) > 1649 return -EBADF; 1650 if (f.file->f_op != &vfio_group_fops) 1651 goto out_fdput; 1652 1653 group = f.file->private_data; 1654 ret = vfio_group_container_acquire(group); 1655 if (ret) 1656 goto out_fdput; 1657 return group; 1658 1659 out_fdput: 1660 fdput(f); 1661 return ERR_PTR(ret); 1662 } 1663 EXPORT_SYMBOL_GPL(vfio_group_container_acquire_fd); 1664 --- 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: 40720 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: [hch-misc:i915-mdev 40/40] drivers/vfio/vfio.c:1649:24: sparse: sparse: incorrect type in return expression (different base types) Date: Sun, 25 Jul 2021 06:00:52 +0800 [thread overview] Message-ID: <202107250650.2VfKOoW6-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 2568 bytes --] tree: git://git.infradead.org/users/hch/misc.git i915-mdev head: 3e7e1da34feaeb5473f397c9cab73b4eb7f6a33c commit: 3e7e1da34feaeb5473f397c9cab73b4eb7f6a33c [40/40] vfio: improve vfio_group_get_external_user config: sparc64-randconfig-s031-20210725 (attached as .config) compiler: sparc64-linux-gcc (GCC) 10.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-341-g8af24329-dirty git remote add hch-misc git://git.infradead.org/users/hch/misc.git git fetch --no-tags hch-misc i915-mdev git checkout 3e7e1da34feaeb5473f397c9cab73b4eb7f6a33c # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc64 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 >>) >> drivers/vfio/vfio.c:1649:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected struct vfio_group * @@ got int @@ drivers/vfio/vfio.c:1649:24: sparse: expected struct vfio_group * drivers/vfio/vfio.c:1649:24: sparse: got int vim +1649 drivers/vfio/vfio.c 1630 1631 /** 1632 * vfio_group_container_acquire_fd - acquire access to a VFIO container 1633 * by file descriptor 1634 * @fd: file descriptor to access 1635 * 1636 * Grab a reference to the VFIO container used by the VFIO group pointed to by 1637 * @fd. 1638 * 1639 * Returns the VFIO group on success or an error pointer. 1640 */ 1641 struct vfio_group *vfio_group_container_acquire_fd(int fd) 1642 { 1643 struct vfio_group *group; 1644 struct fd f; 1645 int ret = -EINVAL; 1646 1647 f = fdget(fd); 1648 if (!f.file) > 1649 return -EBADF; 1650 if (f.file->f_op != &vfio_group_fops) 1651 goto out_fdput; 1652 1653 group = f.file->private_data; 1654 ret = vfio_group_container_acquire(group); 1655 if (ret) 1656 goto out_fdput; 1657 return group; 1658 1659 out_fdput: 1660 fdput(f); 1661 return ERR_PTR(ret); 1662 } 1663 EXPORT_SYMBOL_GPL(vfio_group_container_acquire_fd); 1664 --- 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: 40720 bytes --]
next reply other threads:[~2021-07-24 22:01 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-07-24 22:00 kernel test robot [this message] 2021-07-24 22:00 ` [hch-misc:i915-mdev 40/40] drivers/vfio/vfio.c:1649:24: sparse: sparse: incorrect type in return expression (different base types) kernel test robot
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=202107250650.2VfKOoW6-lkp@intel.com \ --to=lkp@intel.com \ --cc=hch@lst.de \ --cc=kbuild-all@lists.01.org \ --cc=linux-kernel@vger.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.