* [yiliu1765-iommufd:wip/vfio_device_cdev_v7_candidate 24/32] drivers/vfio/group.c:190:5: warning: no previous prototype for function 'vfio_device_group_attach_compat_ioas'
@ 2023-03-13 5:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-13 5:27 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: arm64-randconfig-r012-20230313 (https://download.01.org/0day-ci/archive/20230313/202303131306.hSZccHFU-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# 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=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 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/202303131306.hSZccHFU-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/vfio/group.c:190:5: warning: no previous prototype for function 'vfio_device_group_attach_compat_ioas' [-Wmissing-prototypes]
int vfio_device_group_attach_compat_ioas(struct vfio_device *device,
^
drivers/vfio/group.c:190:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int vfio_device_group_attach_compat_ioas(struct vfio_device *device,
^
static
1 warning generated.
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:28 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:27 [yiliu1765-iommufd:wip/vfio_device_cdev_v7_candidate 24/32] drivers/vfio/group.c:190:5: warning: no previous prototype for function 'vfio_device_group_attach_compat_ioas' 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).