X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=init%2Fdo_mounts.h;h=735705d137ff9beaf0f7866e7c804d7080183780;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=de92bee4f35e7b9e03a5871e0d7c96c4c4bcc608;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/init/do_mounts.h b/init/do_mounts.h index de92bee4f..735705d13 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h @@ -1,6 +1,4 @@ -#include #include -#include #include #include #include @@ -9,32 +7,18 @@ #include #include -dev_t name_to_dev_t(char *name); void change_floppy(char *fmt, ...); void mount_block_root(char *name, int flags); void mount_root(void); extern int root_mountflags; extern char *root_device_name; -#ifdef CONFIG_DEVFS_FS - -void mount_devfs(void); -void umount_devfs(char *path); -int create_dev(char *name, dev_t dev, char *devfs_name); - -#else - -static inline void mount_devfs(void) {} -static inline void umount_devfs(const char *path) {} - -static inline int create_dev(char *name, dev_t dev, char *devfs_name) +static inline int create_dev(char *name, dev_t dev) { sys_unlink(name); return sys_mknod(name, S_IFBLK|0600, new_encode_dev(dev)); } -#endif - #if BITS_PER_LONG == 32 static inline u32 bstat(char *name) {