lkml.org 
[lkml]   [1998]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject2.1.80pre[3-4] __get_free_pages patches
Date

Here are a couple of patches I had to apply to the pre3 and pre4 kernels to
get them to compile. I think they're correct - I looked at what the patches
themselves had done.

--
Matthew Harrell Never raise your hand to your
Simulation Technology Division, SAIC children - it leaves your
mharrell@std.saic.com midsection unprotected.
diff -urN linux/drivers/block/raid5.c.ori linux/drivers/block/raid5.c
--- linux/drivers/block/raid5.c.ori Sat Jan 17 00:53:15 1998
+++ linux/drivers/block/raid5.c Sat Jan 17 00:55:03 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);

diff -urN linux/drivers/sound/soundcard.c.ori linux/drivers/sound/soundcard.c
--- linux/drivers/sound/soundcard.c.ori Sat Jan 17 01:00:44 1998
+++ linux/drivers/sound/soundcard.c Sat Jan 17 01:01:45 1998
@@ -1100,7 +1100,7 @@

dmap->buffsize = PAGE_SIZE * (1 << sz);

- if ((start_addr = (char *) __get_free_pages(GFP_ATOMIC, sz, MAX_DMA_ADDRESS)) == NULL)
+ if ((start_addr = (char *) __get_free_pages(GFP_ATOMIC, sz)) == NULL)
dmap->buffsize /= 2;
}
\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.076 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site