lkml.org 
[lkml]   [2024]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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>


    \
     
     \ /
      Last update: 2024-05-27 15:11    [W:3.145 / U:0.108 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site