lkml.org 
[lkml]   [2002]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectFix compilation warning in do_mounts.c

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/
\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.103 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site