* [yiliu1765-iommufd:vfio_device_cdev_v3 16/19] drivers/vfio/vfio_main.c:252:48: error: 'struct vfio_device' has no member named 'cdev'; did you mean 'dev'?
@ 2023-02-13 17:43 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-13 17:43 UTC (permalink / raw)
To: Yi Liu, Kevin Tian; +Cc: oe-kbuild-all
tree: https://github.com/yiliu1765/iommufd.git vfio_device_cdev_v3
head: 98491da60ae1496187eb3585f5de36c843a237d1
commit: 241853c75dabceb7ecc9d96df30fff1c586c6b03 [16/19] vfio: Add cdev for vfio_device
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20230214/202302140101.lFRZRg5S-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/yiliu1765/iommufd/commit/241853c75dabceb7ecc9d96df30fff1c586c6b03
git remote add yiliu1765-iommufd https://github.com/yiliu1765/iommufd.git
git fetch --no-tags yiliu1765-iommufd vfio_device_cdev_v3
git checkout 241853c75dabceb7ecc9d96df30fff1c586c6b03
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 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/202302140101.lFRZRg5S-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/vfio/vfio_main.c: In function 'vfio_device_add':
>> drivers/vfio/vfio_main.c:252:48: error: 'struct vfio_device' has no member named 'cdev'; did you mean 'dev'?
252 | ret = cdev_device_add(&device->cdev, &device->device);
| ^~~~
| dev
drivers/vfio/vfio_main.c: In function 'vfio_device_del':
drivers/vfio/vfio_main.c:261:42: error: 'struct vfio_device' has no member named 'cdev'; did you mean 'dev'?
261 | cdev_device_del(&device->cdev, &device->device);
| ^~~~
| dev
vim +252 drivers/vfio/vfio_main.c
246
247 static int vfio_device_add(struct vfio_device *device)
248 {
249 int ret;
250
251 if (IS_ENABLED(CONFIG_VFIO_DEVICE_CDEV))
> 252 ret = cdev_device_add(&device->cdev, &device->device);
253 else
254 ret = device_add(&device->device);
255 return ret;
256 }
257
--
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-02-13 17:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13 17:43 [yiliu1765-iommufd:vfio_device_cdev_v3 16/19] drivers/vfio/vfio_main.c:252:48: error: 'struct vfio_device' has no member named 'cdev'; did you mean 'dev'? 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).