X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=init%2Fdo_mounts.h;h=f5b978a9bb92892a5e876ae3ce1338ad8a896e04;hb=b406e6103baa3da85950f22d3d46d21a8da654c5;hp=e0a7ac9649e1e4c10c080a7691744ce62e6bc497;hpb=d53d9f16ea95a91ad4aa114809dcde486ca4000d;p=safe%2Fjmp%2Flinux-2.6 diff --git a/init/do_mounts.h b/init/do_mounts.h index e0a7ac9..f5b978a 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h @@ -1,6 +1,5 @@ -#include #include -#include +#include #include #include #include @@ -13,27 +12,13 @@ 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) {