mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
init: mark create_dev as __init
This helper is only used for the early init code. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
a94b521448
commit
09cbcec07b
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ void mount_block_root(char *name, int flags);
|
||||||
void mount_root(void);
|
void mount_root(void);
|
||||||
extern int root_mountflags;
|
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);
|
ksys_unlink(name);
|
||||||
return ksys_mknod(name, S_IFBLK|0600, new_encode_dev(dev));
|
return ksys_mknod(name, S_IFBLK|0600, new_encode_dev(dev));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue