[PATCH] Fix build error with strict mm checking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Turning on STRICT_MM_TYPECHECKS in include/asm/page.h causes a
build error for sparc32. This patch against 2.6.21 fixes this.

Martin

	Signed-off-by: Martin Habets <errandir_news@xxxxxxxxxxxxxxxxx>
---
--- linux/sound/core/sgbuf.c.orig	2007-06-06 23:53:34.000000000 +0100
+++ linux/sound/core/sgbuf.c	2007-06-06 23:54:45.000000000 +0100
@@ -96,7 +96,7 @@ void *snd_malloc_sgbuf_pages(struct devi
 	}
 
 	sgbuf->size = size;
-	dmab->area = vmap(sgbuf->page_table, sgbuf->pages, VM_MAP, PAGE_KERNEL);
+	dmab->area = vmap(sgbuf->page_table, sgbuf->pages, VM_MAP, __pgprot(PAGE_KERNEL));
 	if (! dmab->area)
 		goto _failed;
 	return dmab->area;
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux