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

From: Ricardo B. Marliere
Date: Wed Sep 04 2024 - 10:24:20 EST


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@xxxxxxxxxxxxxxxxxxx>
> Suggested-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Ricardo B. Marliere <ricardo.marliere@xxxxxxxx>
> ---
> v1->v2:
> - Added missing specifiers regarding:
> https://lore.kernel.org/oe-kbuild-all/202403091124.VOzGG1lj-lkp@xxxxxxxxx/
> https://lore.kernel.org/oe-kbuild-all/202403090918.89zrHUF2-lkp@xxxxxxxxx/
> https://lore.kernel.org/oe-kbuild-all/202409041701.8NfSraMa-lkp@xxxxxxxxx/
>
> v1: https://lore.kernel.org/all/20240309-device_cleanup-gregkh-v1-1-8ca586ef17ba@xxxxxxxxxxxx/

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