Messages in this thread | | | Date | Tue, 20 Feb 2024 11:21:24 +0000 | From | Simon Horman <> | Subject | Re: [PATCH 07/12] net: hsr: constify the struct device_type usage |
| |
On Sat, Feb 17, 2024 at 05:13:29PM -0300, Ricardo B. Marliere wrote: > Since commit aed65af1cc2f ("drivers: make device_type const"), the driver > core can properly handle constant struct device_type. Move the hsr_type > variable to be a constant structure as well, placing it into read-only > memory which can not be modified at runtime. > > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Simon Horman <horms@kernel.org>
| |