diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-01 18:51:47 +0100 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2024-03-05 23:15:27 +0100 |
commit | 1f92d6a7c65f390617463532b408030a5a168097 (patch) | |
tree | 054519fb664fd4b7bc55d58b9e7428b086c1360c /samples/landlock | |
parent | hisi_acc_vfio_pci: Remove the deferred_reset logic (diff) | |
download | linux-1f92d6a7c65f390617463532b408030a5a168097.tar.xz linux-1f92d6a7c65f390617463532b408030a5a168097.zip |
vfio/mdpy: make mdpy_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the mdpy_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Link: https://lore.kernel.org/r/20240301-class_cleanup-vfio-v1-1-9236d69083f5@marliere.net
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'samples/landlock')
0 files changed, 0 insertions, 0 deletions