Fix compilation warning in do_mounts.c

Peter Chubb (peter@chubb.wattle.id.au)
Fri, 24 May 2002 15:46:40 +1000


Hi,
change_floppy() is unused if you don't have the floppy device
compiled into the kernel --- so why not #ifdef it out?

===== init/do_mounts.c 1.14 vs edited =====
--- 1.14/init/do_mounts.c Mon May 6 02:35:44 2002
+++ edited/init/do_mounts.c Fri May 24 15:46:28 2002
@@ -364,6 +364,7 @@
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;
@@ -391,6 +392,7 @@
close(fd);
}
}
+#endif

#ifdef CONFIG_BLK_DEV_RAM

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/