Update of /cvsroot/alsa/alsa-kernel/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31178
Modified Files: memalloc.c Log Message: - suppress allocation failure warnings with large buffers. Index: memalloc.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/core/memalloc.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- memalloc.c 3 Mar 2004 11:49:52 -0000 1.25 +++ memalloc.c 3 Mar 2004 12:07:42 -0000 1.26 @@ -242,11 +242,15 @@ { int pg; void *res; + unsigned int gfp_flags; snd_assert(size > 0, return NULL); snd_assert(dma != NULL, return NULL); pg = get_order(size); - res = dma_alloc_coherent(dev, PAGE_SIZE << pg, dma, GFP_KERNEL); + gfp_flags = GFP_KERNEL; + if (pg > 0) + gfp_flags |= __GFP_NOWARN; + res = dma_alloc_coherent(dev, PAGE_SIZE << pg, dma, gfp_flags); if (res != NULL) mark_pages(res, pg); ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog