init: mark create_dev as __init
authorChristoph Hellwig <hch@lst.de>
Tue, 21 Jul 2020 10:20:16 +0000 (12:20 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2020 06:17:51 +0000 (08:17 +0200)
This helper is only used for the early init code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
init/do_mounts.h

index c855b3f..021e2f6 100644 (file)
@@ -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));