Re: compile problem 2.3.99-pre4 (MAX_MD_BOOT_DEVS), patch included

From: Andrea Arcangeli (andrea@suse.de)
Date: Wed Apr 12 2000 - 10:07:51 EST


On Wed, 12 Apr 2000, Frank de Lange wrote:

>Hi'all,
>
>Seems some patches missed the boat on 2.3.99-pre4:
>
>gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686 -DEXPORT_SYMTAB -c md.c
>md.c: In function `md_geninit':
>md.c:3459: `MAX_MD_BOOT_DEVS' undeclared (first use in this function)
>md.c:3459: (Each undeclared identifier is reported only once
>md.c:3459: for each function it appears in.)
>make[4]: *** [md.o] Error 1
>make[4]: Leaving directory `/usr/src/linux-23/drivers/block'
>make[3]: *** [first_rule] Error 2
>make[3]: Leaving directory `/usr/src/linux-23/drivers/block'
>make[2]: *** [_subdir_block] Error 2
>make[2]: Leaving directory `/usr/src/linux-23/drivers'
>make[1]: *** [_dir_drivers] Error 2
>make[1]: Leaving directory `/usr/src/linux-23'
>make: *** [stamp-build] Error 2
>
>
>This patch should fix it. If this is all wrong, please tell...

It seems not correct. This should be the right one (untested):

--- md/drivers/block/md.c.~1~ Wed Apr 12 16:03:10 2000
+++ md/drivers/block/md.c Wed Apr 12 16:16:22 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;

Andrea

-
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:18 EST