Commit 0140603e authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] do_mounts warning removal

Peter Chubb <peter@chubb.wattle.id.au>: Fix compilation warning in do_mounts.c:

  	change_floppy() is unused if you don't have the floppy device
  compiled into the kernel --- so why not #ifdef it out?
parent a51a00ea
......@@ -365,6 +365,7 @@ static int __init create_dev(char *name, kdev_t dev, char *devfs_name)
return sys_symlink(path + n + 5, name);
}
#if defined(BLOCK_DEV_RAM) || defined(CONFIG_BLK_DEV_FD)
static void __init change_floppy(char *fmt, ...)
{
struct termios termios;
......@@ -392,6 +393,7 @@ static void __init change_floppy(char *fmt, ...)
close(fd);
}
}
#endif
#ifdef CONFIG_BLK_DEV_RAM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment