Re: [PATCH 23/36] driver core: bus: mark the struct bus_type for sysfs callbacks as constant
From: Martin K. Petersen
Date: Tue Mar 14 2023 - 22:34:59 EST
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@xxxxxxxxxx> # scsi
--
Martin K. Petersen Oracle Linux Engineering