Skip to content

Commit 09cbcec

Browse files
author
Christoph Hellwig
committed
init: mark create_dev as __init
This helper is only used for the early init code. Signed-off-by: Christoph Hellwig <[email protected]>
1 parent a94b521 commit 09cbcec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init/do_mounts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void mount_block_root(char *name, int flags);
1313
void mount_root(void);
1414
extern int root_mountflags;
1515

16-
static inline int create_dev(char *name, dev_t dev)
16+
static inline __init int create_dev(char *name, dev_t dev)
1717
{
1818
ksys_unlink(name);
1919
return ksys_mknod(name, S_IFBLK|0600, new_encode_dev(dev));

0 commit comments

Comments
 (0)