lkml.org 
[lkml]   [2020]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/23] init: mark create_dev as __init
    Date
    This helper is only used for the early init code.

    Signed-off-by: Christoph Hellwig <hch@lst.de>
    ---
    init/do_mounts.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/init/do_mounts.h b/init/do_mounts.h
    index c855b3f0e06d19..021e2f60223e25 100644
    --- a/init/do_mounts.h
    +++ b/init/do_mounts.h
    @@ -13,7 +13,7 @@ void mount_block_root(char *name, int flags);
    void mount_root(void);
    extern int root_mountflags;

    -static inline int create_dev(char *name, dev_t dev)
    +static inline __init int create_dev(char *name, dev_t dev)
    {
    ksys_unlink(name);
    return ksys_mknod(name, S_IFBLK|0600, new_encode_dev(dev));
    --
    2.27.0
    \
     
     \ /
      Last update: 2020-07-28 18:34    [W:4.190 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site