diff options
| author | 2026-03-06 20:06:28 +0100 | |
|---|---|---|
| committer | 2026-03-16 13:38:50 -0600 | |
| commit | 5efa9a54c6a5f22080f33012c41a94112e955b53 (patch) | |
| tree | 2a3b5ffaebf0ee2f80cb6b0842beb3dc8c257536 /tools/testing/ktest/examples/include/ssh:/git@git.zx2c4.com/git: | |
| parent | vfio: selftests: fix crash in vfio_dma_mapping_mmio_test (diff) | |
vfio: replace vfio->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->class with a const struct class and drop the
class_create() call.
Compile tested and found no errors/warns in dmesg after enabling
VFIO_GROUP.
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>
Link: https://lore.kernel.org/r/20260306190628.259203-1-jkoolstra@xs4all.nl
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'tools/testing/ktest/examples/include/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
