tree:
https://github.com/awilliam/linux-vfio.git next
head: 2099363255f123f6c9abcfa8531bbec65a8f1820
commit: cc0ee20bd96971c10eba9a83ecf1c0733078a083 [22/27] vfio/fsl-mc: trigger an interrupt
via eventfd
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/awilliam/linux-vfio/commit/cc0ee20bd96971c10eba9a83ecf...
git remote add vfio
https://github.com/awilliam/linux-vfio.git
git fetch --no-tags vfio next
git checkout cc0ee20bd96971c10eba9a83ecf1c0733078a083
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/vfio/fsl-mc/vfio_fsl_mc.c: In function 'vfio_fsl_mc_release':
> drivers/vfio/fsl-mc/vfio_fsl_mc.c:170:9: error: implicit
declaration of function 'dprc_reset_container'
[-Werror=implicit-function-declaration]
170 | ret =
dprc_reset_container(mc_cont->mc_io, 0,
| ^~~~~~~~~~~~~~~~~~~~
> drivers/vfio/fsl-mc/vfio_fsl_mc.c:173:6: error:
'DPRC_RESET_OPTION_NON_RECURSIVE' undeclared (first use in this function)
173 | DPRC_RESET_OPTION_NON_RECURSIVE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/vfio/fsl-mc/vfio_fsl_mc.c:173:6: note: each undeclared identifier is reported
only once for each function it appears in
> drivers/vfio/fsl-mc/vfio_fsl_mc.c:183:3: error: implicit
declaration of function 'fsl_mc_cleanup_irq_pool'
[-Werror=implicit-function-declaration]
183 |
fsl_mc_cleanup_irq_pool(mc_cont);
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/vfio/fsl-mc/vfio_fsl_mc.c: In function 'vfio_fsl_mc_mmap_mmio':
drivers/vfio/fsl-mc/vfio_fsl_mc.c:327:36: error: 'FSL_MC_REGION_CACHEABLE'
undeclared (first use in this function)
327 | region_cacheable = (region.type & FSL_MC_REGION_CACHEABLE) &&
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/vfio/fsl-mc/vfio_fsl_mc.c:328:22: error: 'FSL_MC_REGION_SHAREABLE'
undeclared (first use in this function)
328 | (region.type & FSL_MC_REGION_SHAREABLE);
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/vfio/fsl-mc/vfio_fsl_mc.c: In function 'vfio_fsl_mc_bus_notifier':
drivers/vfio/fsl-mc/vfio_fsl_mc.c:394:9: error: 'struct fsl_mc_device' has no
member named 'driver_override'
394 | mc_dev->driver_override = kasprintf(GFP_KERNEL, "%s",
| ^~
drivers/vfio/fsl-mc/vfio_fsl_mc.c:396:14: error: 'struct fsl_mc_device' has no
member named 'driver_override'
396 | if (!mc_dev->driver_override)
| ^~
drivers/vfio/fsl-mc/vfio_fsl_mc.c: In function 'vfio_fsl_mc_init_device':
drivers/vfio/fsl-mc/vfio_fsl_mc.c:433:8: error: implicit declaration of function
'dprc_setup' [-Werror=implicit-function-declaration]
433 | ret = dprc_setup(mc_dev);
| ^~~~~~~~~~
drivers/vfio/fsl-mc/vfio_fsl_mc.c:439:8: error: implicit declaration of function
'dprc_scan_container' [-Werror=implicit-function-declaration]
439 | ret = dprc_scan_container(mc_dev, false);
| ^~~~~~~~~~~~~~~~~~~
drivers/vfio/fsl-mc/vfio_fsl_mc.c:448:2: error: implicit declaration of function
'dprc_remove_devices' [-Werror=implicit-function-declaration]
448 | dprc_remove_devices(mc_dev, NULL, 0);
| ^~~~~~~~~~~~~~~~~~~
drivers/vfio/fsl-mc/vfio_fsl_mc.c:449:2: error: implicit declaration of function
'dprc_cleanup' [-Werror=implicit-function-declaration]
449 | dprc_cleanup(mc_dev);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c:16:5: warning: no previous prototype for
'vfio_fsl_mc_irqs_allocate' [-Wmissing-prototypes]
16 | int vfio_fsl_mc_irqs_allocate(struct vfio_fsl_mc_device *vdev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c: In function
'vfio_fsl_mc_set_irq_trigger':
> drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c:121:8: error: implicit
declaration of function 'fsl_mc_populate_irq_pool'
[-Werror=implicit-function-declaration]
121 | ret =
fsl_mc_populate_irq_pool(mc_cont,
| ^~~~~~~~~~~~~~~~~~~~~~~~
> drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c:122:4: error:
'FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS' undeclared (first use in this function)
122 | FSL_MC_IRQ_POOL_MAX_TOTAL_IRQS);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c:122:4: note: each undeclared identifier is
reported only once for each function it appears in
cc1: some warnings being treated as errors
vim +/dprc_reset_container +170 drivers/vfio/fsl-mc/vfio_fsl_mc.c
154
155 static void vfio_fsl_mc_release(void *device_data)
156 {
157 struct vfio_fsl_mc_device *vdev = device_data;
158 int ret;
159
160 mutex_lock(&vdev->reflck->lock);
161
162 if (!(--vdev->refcnt)) {
163 struct fsl_mc_device *mc_dev = vdev->mc_dev;
164 struct device *cont_dev = fsl_mc_cont_dev(&mc_dev->dev);
165 struct fsl_mc_device *mc_cont = to_fsl_mc_device(cont_dev);
166
167 vfio_fsl_mc_regions_cleanup(vdev);
168
169 /* reset the device before cleaning up the interrupts */
170 ret = dprc_reset_container(mc_cont->mc_io, 0,
171 mc_cont->mc_handle,
172 mc_cont->obj_desc.id,
173 DPRC_RESET_OPTION_NON_RECURSIVE);
174
175 if (ret) {
176 dev_warn(&mc_cont->dev, "VFIO_FLS_MC: reset device has failed
(%d)\n",
177 ret);
178 WARN_ON(1);
179 }
180
181 vfio_fsl_mc_irqs_cleanup(vdev);
182
183 fsl_mc_cleanup_irq_pool(mc_cont);
184 }
185
186 mutex_unlock(&vdev->reflck->lock);
187
188 module_put(THIS_MODULE);
189 }
190
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org