From: Ricardo B. Marliere Date: Sat, 3 Feb 2024 14:58:03 +0000 (-0300) Subject: s390/vfio-ap: make matrix_bus const X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9e99049a80b1a251dc4581ff3031196015b8ad41;p=linux.git s390/vfio-ap: make matrix_bus const Now that the driver core can properly handle constant struct bus_type, move the matrix_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 Suggested-by: Greg Kroah-Hartman Signed-off-by: "Ricardo B. Marliere" Acked-by: Halil Pasic Reviewed-by: Anthony Krowiak Reviewed-by: "Jason J. Herne" Reviewed-by: Greg Kroah-Hartman Link: https://lore.kernel.org/r/20240203-bus_cleanup-s390-v1-6-ac891afc7282@marliere.net Signed-off-by: Heiko Carstens --- diff --git a/drivers/s390/crypto/vfio_ap_drv.c b/drivers/s390/crypto/vfio_ap_drv.c index a5ab03e42ff1c..4aeb3e1213c77 100644 --- a/drivers/s390/crypto/vfio_ap_drv.c +++ b/drivers/s390/crypto/vfio_ap_drv.c @@ -60,7 +60,7 @@ static void vfio_ap_matrix_dev_release(struct device *dev) kfree(matrix_dev); } -static struct bus_type matrix_bus = { +static const struct bus_type matrix_bus = { .name = "matrix", };