diff options
Diffstat (limited to 'init/do_mounts.h')
-rw-r--r-- | init/do_mounts.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/init/do_mounts.h b/init/do_mounts.h index e0a7ac9649e1..e7f2e7fa066e 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h | |||
@@ -1,6 +1,5 @@ | |||
1 | #include <linux/config.h> | 1 | #include <linux/config.h> |
2 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
3 | #include <linux/devfs_fs_kernel.h> | ||
4 | #include <linux/init.h> | 3 | #include <linux/init.h> |
5 | #include <linux/syscalls.h> | 4 | #include <linux/syscalls.h> |
6 | #include <linux/unistd.h> | 5 | #include <linux/unistd.h> |
@@ -15,25 +14,12 @@ void mount_root(void); | |||
15 | extern int root_mountflags; | 14 | extern int root_mountflags; |
16 | extern char *root_device_name; | 15 | extern char *root_device_name; |
17 | 16 | ||
18 | #ifdef CONFIG_DEVFS_FS | 17 | static inline int create_dev(char *name, dev_t dev) |
19 | |||
20 | void mount_devfs(void); | ||
21 | void umount_devfs(char *path); | ||
22 | int create_dev(char *name, dev_t dev, char *devfs_name); | ||
23 | |||
24 | #else | ||
25 | |||
26 | static inline void mount_devfs(void) {} | ||
27 | static inline void umount_devfs(const char *path) {} | ||
28 | |||
29 | static inline int create_dev(char *name, dev_t dev, char *devfs_name) | ||
30 | { | 18 | { |
31 | sys_unlink(name); | 19 | sys_unlink(name); |
32 | return sys_mknod(name, S_IFBLK|0600, new_encode_dev(dev)); | 20 | return sys_mknod(name, S_IFBLK|0600, new_encode_dev(dev)); |
33 | } | 21 | } |
34 | 22 | ||
35 | #endif | ||
36 | |||
37 | #if BITS_PER_LONG == 32 | 23 | #if BITS_PER_LONG == 32 |
38 | static inline u32 bstat(char *name) | 24 | static inline u32 bstat(char *name) |
39 | { | 25 | { |