Skip to content

Commit

Permalink
init: mark create_dev as __init
Browse files Browse the repository at this point in the history
This helper is only used for the early init code.

Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
Christoph Hellwig committed Jul 31, 2020
1 parent a94b521 commit 09cbcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/do_mounts.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 09cbcec

Please sign in to comment.