summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJori Koolstra <jkoolstra@xs4all.nl>2026-03-09 00:49:39 +0300
committerAlex Williamson <alex@shazbot.org>2026-03-19 21:32:07 +0300
commit06ed87b3197e9b80dccac0b764fdffe44192e010 (patch)
tree18facd4e16e9ce6bcb98e9b094ebb69453877730 /include
parent5efa9a54c6a5f22080f33012c41a94112e955b53 (diff)
downloadlinux-06ed87b3197e9b80dccac0b764fdffe44192e010.tar.xz
vfio: mdev: replace mtty_dev->vd_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 mtty_dev->vd_class with a const struct class and drop the class_create() call. Compile tested and found no errors/warns in dmesg after enabling CONFIG_VFIO and CONFIG_SAMPLE_VFIO_MDEV_MTTY. 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> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20260308214939.1215682-1-jkoolstra@xs4all.nl Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions