[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209290006.VKmLJov5-lkp@intel.com>
Date: Thu, 29 Sep 2022 00:54:04 +0800
From: kernel test robot <lkp@...el.com>
To: Jason Gunthorpe <jgg@...dia.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jgunthorpe:vfio_iommufd 23/24] drivers/vfio/vfio.h:172:5: warning:
no previous prototype for 'vfio_container_pin_pages'
tree: https://github.com/jgunthorpe/linux vfio_iommufd
head: a97b7f88065ebfd42e065dd37f092fadf031b154
commit: ba8f921671cd4870b4cdbaf6d605faa57aee226d [23/24] vfio: Make vfio_container optionally compiled
config: sparc64-randconfig-r015-20220925
compiler: sparc64-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/jgunthorpe/linux/commit/ba8f921671cd4870b4cdbaf6d605faa57aee226d
git remote add jgunthorpe https://github.com/jgunthorpe/linux
git fetch --no-tags jgunthorpe vfio_iommufd
git checkout ba8f921671cd4870b4cdbaf6d605faa57aee226d
# 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=sparc64 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/vfio/vfio_main.c:39:
>> drivers/vfio/vfio.h:172:5: warning: no previous prototype for 'vfio_container_pin_pages' [-Wmissing-prototypes]
172 | int vfio_container_pin_pages(struct vfio_container *container,
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/vfio/vfio.h:179:6: warning: no previous prototype for 'vfio_container_unpin_pages' [-Wmissing-prototypes]
179 | void vfio_container_unpin_pages(struct vfio_container *container,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/vfio/vfio.h:184:5: warning: no previous prototype for 'vfio_container_dma_rw' [-Wmissing-prototypes]
184 | int vfio_container_dma_rw(struct vfio_container *container, dma_addr_t iova,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/vfio/vfio_main.c: In function 'vfio_group_ioctl_unset_container':
>> drivers/vfio/vfio_main.c:680:17: error: implicit declaration of function 'vfio_group_detach_container'; did you mean 'vfio_group_ioctl_unset_container'? [-Werror=implicit-function-declaration]
680 | vfio_group_detach_container(group);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| vfio_group_ioctl_unset_container
drivers/vfio/vfio_main.c: In function 'vfio_device_first_open':
>> drivers/vfio/vfio_main.c:767:23: error: implicit declaration of function 'vfio_group_use_container'; did you mean 'vfio_group_ioctl_set_container'? [-Werror=implicit-function-declaration]
767 | ret = vfio_group_use_container(device->group);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| vfio_group_ioctl_set_container
>> drivers/vfio/vfio_main.c:783:17: error: implicit declaration of function 'vfio_device_container_register' [-Werror=implicit-function-declaration]
783 | vfio_device_container_register(device);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/vfio/vfio_main.c:789:17: error: implicit declaration of function 'vfio_group_unuse_container'; did you mean 'vfio_group_ioctl_set_container'? [-Werror=implicit-function-declaration]
789 | vfio_group_unuse_container(device->group);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| vfio_group_ioctl_set_container
drivers/vfio/vfio_main.c: In function 'vfio_device_last_close':
>> drivers/vfio/vfio_main.c:804:17: error: implicit declaration of function 'vfio_device_container_unregister' [-Werror=implicit-function-declaration]
804 | vfio_device_container_unregister(device);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from drivers/vfio/iommufd.c:8:
>> drivers/vfio/vfio.h:172:5: warning: no previous prototype for 'vfio_container_pin_pages' [-Wmissing-prototypes]
172 | int vfio_container_pin_pages(struct vfio_container *container,
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/vfio/vfio.h:179:6: warning: no previous prototype for 'vfio_container_unpin_pages' [-Wmissing-prototypes]
179 | void vfio_container_unpin_pages(struct vfio_container *container,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/vfio/vfio.h:184:5: warning: no previous prototype for 'vfio_container_dma_rw' [-Wmissing-prototypes]
184 | int vfio_container_dma_rw(struct vfio_container *container, dma_addr_t iova,
| ^~~~~~~~~~~~~~~~~~~~~
vim +/vfio_container_pin_pages +172 drivers/vfio/vfio.h
171
> 172 int vfio_container_pin_pages(struct vfio_container *container,
173 struct iommu_group *iommu_group, dma_addr_t iova,
174 int npage, int prot, struct page **pages)
175 {
176 return -EOPNOTSUPP;
177 }
178
> 179 void vfio_container_unpin_pages(struct vfio_container *container,
180 dma_addr_t iova, int npage)
181 {
182 }
183
> 184 int vfio_container_dma_rw(struct vfio_container *container, dma_addr_t iova,
185 void *data, size_t len, bool write)
186 {
187 return -EOPNOTSUPP;
188 }
189
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (131920 bytes)
Powered by blists - more mailing lists