summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRicardo B. Marliere <ricardo@marliere.net>2024-02-04 17:52:51 -0300
committerMichael S. Tsirkin <mst@redhat.com>2024-03-19 02:45:50 -0400
commit2b666ee29618f452b84aeacf08e1267894de7234 (patch)
treed6a3ee7662c6de32866bc100524745bd98495866 /include
parent8169ed622060035ba6b5b8c10388dfc9a31f1c98 (diff)
downloadlinux-stable-2b666ee29618f452b84aeacf08e1267894de7234.tar.gz
linux-stable-2b666ee29618f452b84aeacf08e1267894de7234.tar.bz2
linux-stable-2b666ee29618f452b84aeacf08e1267894de7234.zip
virtio: make virtio_bus const
Now that the driver core can properly handle constant struct bus_type, move the virtio_bus variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net> Message-Id: <20240204-bus_cleanup-virtio-v1-1-3bcb2212aaa0@marliere.net> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions