[patch] Compile error, md.c, 2.3.99-pre5

From: Tom Leete (tleete@mountain.net)
Date: Thu Apr 13 2000 - 05:40:59 EST


Hi,

I get the following when compiling the new kernel:
md.c: In function `md_geninit':
md.c:3459: `MAX_MD_BOOT_DEVS' undeclared (first use in this
function)

I have
CONFIG_MD_DRIVER=y
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
CONFIG_MD_BOOT=

Am I right in thinking that md_geninit() should register all
md devices, and not just the bootable ones?

If I do understand correctly, this should help.

Regards,
Tom

--- linux/drivers/block/md.c.orig Thu Apr 13 05:46:18 2000
+++ linux/drivers/block/md.c Thu Apr 13 05:59:23 2000
@@ -3456,7 +3456,7 @@
 {
         int i;
 
- for(i = 0; i < MAX_MD_BOOT_DEVS; i++) {
+ for(i = 0; i < MAX_MD_DEVS; i++) {
                 md_blocksizes[i] = 1024;
                 md_size[i] = 0;
                 md_maxreadahead[i] = MD_READAHEAD;

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



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:20 EST