All of lore.kernel.org
 help / color / mirror / Atom feed
* [yiliu1765-iommufd:wip/vfio_device_cdev_v7_candidate 24/32] drivers/vfio/group.c:190:5: warning: no previous prototype for 'vfio_device_group_attach_compat_ioas'
@ 2023-03-13  5:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-13  5:38 UTC (permalink / raw)
  To: Yi Liu, Kevin Tian; +Cc: oe-kbuild-all

tree:   https://github.com/yiliu1765/iommufd.git wip/vfio_device_cdev_v7_candidate
head:   e3cf0848eac9960f7ecb898d997a9e8200d552b0
commit: 61736068803cb2135b42cbf5618c3f116500aa1d [24/32] vfio-iommufd: Move the bind_iommufd and compat_ioas attach to group.c
config: arc-randconfig-r043-20230313 (https://download.01.org/0day-ci/archive/20230313/202303131339.59A950mL-lkp@intel.com/config)
compiler: arc-elf-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/61736068803cb2135b42cbf5618c3f116500aa1d
        git remote add yiliu1765-iommufd https://github.com/yiliu1765/iommufd.git
        git fetch --no-tags yiliu1765-iommufd wip/vfio_device_cdev_v7_candidate
        git checkout 61736068803cb2135b42cbf5618c3f116500aa1d
        # 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=arc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/vfio/

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/202303131339.59A950mL-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/vfio/group.c:190:5: warning: no previous prototype for 'vfio_device_group_attach_compat_ioas' [-Wmissing-prototypes]
     190 | int vfio_device_group_attach_compat_ioas(struct vfio_device *device,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/vfio_device_group_attach_compat_ioas +190 drivers/vfio/group.c

   189	
 > 190	int vfio_device_group_attach_compat_ioas(struct vfio_device *device,
   191						 struct iommufd_ctx *iommufd)
   192	{
   193		u32 ioas_id;
   194		int ret;
   195	
   196		lockdep_assert_held(&device->dev_set->lock);
   197	
   198		ret = iommufd_vfio_compat_ioas_get_id(iommufd, &ioas_id);
   199		if (ret)
   200			return ret;
   201	
   202		/* The legacy path has no way to return the selected pt_id */
   203		return device->ops->attach_ioas(device, &ioas_id);
   204	}
   205	

-- 
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-03-13  5:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-13  5:38 [yiliu1765-iommufd:wip/vfio_device_cdev_v7_candidate 24/32] drivers/vfio/group.c:190:5: warning: no previous prototype for 'vfio_device_group_attach_compat_ioas' 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.