1
0

init: add an init_mknod helper

Add a simple helper to mknod with a kernel space file name and switch
the early init code over to it.  Remove the now unused ksys_mknod.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Este cometimento está contido em:
Christoph Hellwig
2020-07-22 11:41:20 +02:00
ascendente 83ff98c3e9
cometimento 5fee64fcde
8 ficheiros modificados com 30 adições e 16 eliminações

Ver ficheiro

@@ -17,7 +17,7 @@ extern int root_mountflags;
static inline __init int create_dev(char *name, dev_t dev)
{
init_unlink(name);
return ksys_mknod(name, S_IFBLK|0600, new_encode_dev(dev));
return init_mknod(name, S_IFBLK | 0600, new_encode_dev(dev));
}
#ifdef CONFIG_BLK_DEV_RAM