diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-21 12:20:16 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-31 08:17:51 +0200 |
commit | 09cbcec07b578c04ab4ab0e31940c20126f79c4b (patch) | |
tree | 7c20b3bd90d8c4906cf67ee058fdc64379a287ed /init | |
parent | a94b5214487b626a148c6aab86809fbeb8fcd6b1 (diff) | |
download | linux-09cbcec07b578c04ab4ab0e31940c20126f79c4b.tar.gz linux-09cbcec07b578c04ab4ab0e31940c20126f79c4b.tar.bz2 linux-09cbcec07b578c04ab4ab0e31940c20126f79c4b.zip |
init: mark create_dev as __init
This helper is only used for the early init code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'init')
-rw-r--r-- | init/do_mounts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/do_mounts.h b/init/do_mounts.h index c855b3f0e06d..021e2f60223e 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)); |