lkml.org 
[lkml]   [2021]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] 9p: Constify static struct v9fs_attr_group

    Rikard Falkeborn wrote on Fri, Jan 08, 2021 at 11:46:50PM +0100:
    > The only usage of v9fs_attr_group is to pass its address to
    > sysfs_create_group() and sysfs_create_group(), both which takes pointers
    > to const struct attribute_group. Make it const to allow the compiler to
    > put it in read-only memory.
    >
    > Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>

    Thanks, taking it.
    --
    Dominique

    \
     
     \ /
      Last update: 2021-01-09 00:17    [W:6.503 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site