Thread (2 messages) 2 messages, 1 author, 2024-09-04

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

From: Ricardo B. Marliere <hidden>
Date: 2024-09-04 14:20:52
Also in: linux-arm-kernel, lkml

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@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <redacted>
---
v1->v2:
- Added missing specifiers regarding:
https://lore.kernel.org/oe-kbuild-all/202403091124.VOzGG1lj-lkp@intel.com/ (local)
https://lore.kernel.org/oe-kbuild-all/202403090918.89zrHUF2-lkp@intel.com/ (local)
https://lore.kernel.org/oe-kbuild-all/202409041701.8NfSraMa-lkp@intel.com/ (local)

v1: https://lore.kernel.org/all/20240309-device_cleanup-gregkh-v1-1-8ca586ef17ba@marliere.net/ (local)
Actually, v1 is at:
https://lore.kernel.org/all/20240219-device_cleanup-fsl-mc-v1-1-d206b8b90f2b@marliere.net/ (local)

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help