diff options
author | 2024-02-12 15:38:37 -0300 | |
---|---|---|
committer | 2024-02-12 20:47:23 -0500 | |
commit | a0bcad233fd6a4cdd14441d7cc27b28475721fe8 (patch) | |
tree | 15f2290e94b967a1c224d823da185026d7af8452 /scripts/generate_rust_analyzer.py | |
parent | scsi: core: Really include kunit tests with SCSI_LIB_KUNIT_TEST (diff) | |
download | linux-rng-a0bcad233fd6a4cdd14441d7cc27b28475721fe8.tar.xz linux-rng-a0bcad233fd6a4cdd14441d7cc27b28475721fe8.zip |
scsi: core: Make scsi_bus_type const
Since commit d492cc2573a0 ("driver core: device.h: make struct bus_type a
const *"), the driver core can properly handle constant struct bus_type,
move the scsi_bus_type 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>
Link: https://lore.kernel.org/r/20240212-bus_cleanup-scsi2-v2-1-65004493ff09@marliere.net
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions