#include <linux/kernel.h>
#include <linux/blkdev.h>
#include <linux/syscalls.h>
#include <linux/unistd.h>
#include <linux/root_dev.h>
void change_floppy(char *fmt, ...);
void mount_block_root(char *name, int flags);
extern int root_mountflags;
static inline int create_dev(char *name, dev_t dev)
return ksys_mknod(name, S_IFBLK|0600, new_encode_dev(dev));
static inline u32 bstat(char *name)
if (vfs_stat(name, &stat) != 0)
#ifdef CONFIG_BLK_DEV_RAM
int __init rd_load_disk(int n);
int __init rd_load_image(char *from);
static inline int rd_load_disk(int n) { return 0; }
static inline int rd_load_image(char *from) { return 0; }
#ifdef CONFIG_BLK_DEV_INITRD
bool __init initrd_load(void);
static inline bool initrd_load(void) { return false; }
static inline void md_run_setup(void) {}