summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@nvidia.com>2026-04-17 18:28:12 +0300
committerAlex Williamson <alex@shazbot.org>2026-04-21 21:01:21 +0300
commit64965b8a4274b82330433fe8888d999506a81a94 (patch)
treee11eaffacdd19a4a555eff006a39fd33c7f5b486 /scripts/const_structs.checkpatch
parentb0eab97305ae97190a605117095d84f12ecef187 (diff)
downloadlinux-64965b8a4274b82330433fe8888d999506a81a94.tar.xz
vfio: replace vfio->device_class with a const struct class
The class_create() call has been deprecated in favor of class_register() as the driver core now allows for a struct class to be in read-only memory. Replace vfio->device_class with a const struct class and drop the class_create() call. Compile tested with both CONFIG_VFIO_DEVICE_CDEV on and off (and CONFIG_VFIO on); found no errors/warns in dmesg. Link: https://lore.kernel.org/all/2023040244-duffel-pushpin-f738@gregkh/ Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Jori Koolstra <jkoolstra@xs4all.nl> [Remove unused vfio_cdev_init() args] Signed-off-by: Alex Williamson <alex.williamson@nvidia.com> Link: https://lore.kernel.org/r/20260417152814.18026-1-alex.williamson@nvidia.com Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions