hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/init/do_mounts.h
....@@ -8,26 +8,16 @@
88 #include <linux/mount.h>
99 #include <linux/major.h>
1010 #include <linux/root_dev.h>
11
+#include <linux/init_syscalls.h>
1112
12
-void change_floppy(char *fmt, ...);
1313 void mount_block_root(char *name, int flags);
1414 void mount_root(void);
1515 extern int root_mountflags;
1616
17
-static inline int create_dev(char *name, dev_t dev)
17
+static inline __init int create_dev(char *name, dev_t dev)
1818 {
19
- ksys_unlink(name);
20
- return ksys_mknod(name, S_IFBLK|0600, new_encode_dev(dev));
21
-}
22
-
23
-static inline u32 bstat(char *name)
24
-{
25
- struct kstat stat;
26
- if (vfs_stat(name, &stat) != 0)
27
- return 0;
28
- if (!S_ISBLK(stat.mode))
29
- return 0;
30
- return stat.rdev;
19
+ init_unlink(name);
20
+ return init_mknod(name, S_IFBLK | 0600, new_encode_dev(dev));
3121 }
3222
3323 #ifdef CONFIG_BLK_DEV_RAM
....@@ -49,15 +39,5 @@
4939 #else
5040
5141 static inline bool initrd_load(void) { return false; }
52
-
53
-#endif
54
-
55
-#ifdef CONFIG_BLK_DEV_MD
56
-
57
-void md_run_setup(void);
58
-
59
-#else
60
-
61
-static inline void md_run_setup(void) {}
6242
6343 #endif