lkml.org 
[lkml]   [1998]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjectpatch for 2.1.80-pre4 raid5 (Was Re: compile problem with 2.1.79 + pre-patch-2.1.80-4)
Date
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);


\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.039 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site