patch for 2.1.80-pre4 raid5 (Was Re: compile problem with 2.1.79 + pre-patch-2.1.80-4)

jahakala@cc.jyu.fi
20 Jan 1998 18:02:54 +0200


Sebastian Kuzminsky <kuzminsk@taussky.cs.colorado.edu> writes:

> raid5 wont compile for me:
>
> gcc -D__KERNEL__ -I/usr/local/src/linux-2.1.79/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__ -DMODULE -DMODVERSIONS -include /usr/local/src/linux-2.1.79/include/linux/modversions.h -c -o raid5.o raid5.c
> raid5.c: In function `raid5_run':
> raid5.c:1375: too many arguments to function `__get_free_pages_R5b3b8f78'
> make[2]: *** [raid5.o] Error 1
>
Try this one:

--- raid5.c.orig Sat Jan 17 20:11:35 1998
+++ raid5.c Sat Jan 17 20:19:31 1998
@@ -1372,7 +1372,7 @@
memset (raid_conf, 0, sizeof (*raid_conf));
raid_conf->mddev = mddev;

- if ((raid_conf->stripe_hashtbl = (struct stripe_head **) __get_free_pages(GFP_ATOMIC, HASH_PAGES_ORDER, 0)) == NULL)
+ if ((raid_conf->stripe_hashtbl = (struct stripe_head **) __get_free_pages(GFP_ATOMIC, HASH_PAGES_ORDER)) == NULL)
goto abort;
memset(raid_conf->stripe_hashtbl, 0, HASH_PAGES * PAGE_SIZE);