[PATCH v2] bus: fsl-mc: constify the struct device_type usage

Ricardo B. Marliere ricardo.marliere at suse.com
Thu Sep 5 00:20:43 AEST 2024


On  4 Sep 24 11:17, Ricardo B. Marliere wrote:
> Since commit aed65af1cc2f ("drivers: make device_type const"), the driver
> core can properly handle constant struct device_type. Move all the
> device_type variables used in the bus to be constant structures as well,
> placing it into read-only memory which can not be modified at runtime.
> 
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Suggested-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Signed-off-by: Ricardo B. Marliere <ricardo.marliere at suse.com>
> ---
> v1->v2:
> - Added missing specifiers regarding:
> https://lore.kernel.org/oe-kbuild-all/202403091124.VOzGG1lj-lkp@intel.com/
> https://lore.kernel.org/oe-kbuild-all/202403090918.89zrHUF2-lkp@intel.com/
> https://lore.kernel.org/oe-kbuild-all/202409041701.8NfSraMa-lkp@intel.com/
> 
> v1: https://lore.kernel.org/all/20240309-device_cleanup-gregkh-v1-1-8ca586ef17ba@marliere.net/

Actually, v1 is at:
https://lore.kernel.org/all/20240219-device_cleanup-fsl-mc-v1-1-d206b8b90f2b@marliere.net/



More information about the Linuxppc-dev mailing list