| Subject | Re: [PATCH 23/36] driver core: bus: mark the struct bus_type for sysfs callbacks as constant | From | "Martin K. Petersen" <> | Date | Tue, 14 Mar 2023 22:33:57 -0400 |
| |
Greg,
> struct bus_type should never be modified in a sysfs callback as there > is nothing in the structure to modify, and frankly, the structure is > almost never used in a sysfs callback, so mark it as constant to allow > struct bus_type to be moved to read-only memory.
Acked-by: Martin K. Petersen <martin.petersen@oracle.com> # scsi
-- Martin K. Petersen Oracle Linux Engineering
|