Re: compilation of floppy as module failure

Adrian Bunk (bunk@fs.tum.de)
Thu, 11 Jul 2002 22:07:50 +0200 (CEST)


On Thu, 11 Jul 2002, Micha³ Adamczak wrote:

> just wanted to report that in 2.4.19-rc1
> the kernel image does not compile if floppy (CONFIG_BLK_DEV_FD) is
> to be compiled as a module.
>
> the problem does not exist when the floppy is built in.
>...

This is a known problem. The following patch that is already in Marcelos'
BK repository fixes it:

diff -Nru a/init/do_mounts.c b/init/do_mounts.c
--- a/init/do_mounts.c Mon Jun 24 14:08:10 2002
+++ b/init/do_mounts.c Mon Jun 24 14:08:10 2002
@@ -378,7 +378,7 @@
return sys_symlink(path + n + 5, name);
}

-#if defined(CONFIG_BLOCK_DEV_RAM) || defined(CONFIG_BLK_DEV_FD)
+#if defined(CONFIG_BLK_DEV_RAM) || defined(CONFIG_BLK_DEV_FD)
static void __init change_floppy(char *fmt, ...)
{
struct termios termios;

cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox

- 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/