Fix compilation warning in do_mounts.c

From: Peter Chubb (peter@chubb.wattle.id.au)
Date: Fri May 24 2002 - 00:46:40 EST


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/



This archive was generated by hypermail 2b29 : Fri May 31 2002 - 22:00:12 EST