From: Christoph Hellwig Date: Tue, 21 Jul 2020 10:20:16 +0000 (+0200) Subject: init: mark create_dev as __init X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=09cbcec07b578c04ab4ab0e31940c20126f79c4b;p=linux.git init: mark create_dev as __init This helper is only used for the early init code. Signed-off-by: Christoph Hellwig --- diff --git a/init/do_mounts.h b/init/do_mounts.h index c855b3f0e06d1..021e2f60223e2 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));