CVSROOT: /home/cvs
Module name: linux
Changes by: ppopov@ftp.linux-mips.org 05/01/10 09:30:41
Modified files:
arch/mips/au1000/common: dbdma.c
Log message:
Fixed compile warnings.
diff -urN linux/arch/mips/au1000/common/dbdma.c
linux/arch/mips/au1000/common/dbdma.c
--- linux/arch/mips/au1000/common/dbdma.c 2004/12/04 18:16:00 1.8
+++ linux/arch/mips/au1000/common/dbdma.c 2005/01/10 09:30:41 1.9
@@ -370,7 +370,7 @@
* and if we try that first we are likely to not waste larger
* slabs of memory.
*/
- desc_base = kmalloc(entries * sizeof(au1x_ddma_desc_t), GFP_KERNEL);
+ desc_base = (u32)kmalloc(entries * sizeof(au1x_ddma_desc_t),
GFP_KERNEL);
if (desc_base == 0)
return 0;
@@ -381,7 +381,7 @@
kfree((const void *)desc_base);
i = entries * sizeof(au1x_ddma_desc_t);
i += (sizeof(au1x_ddma_desc_t) - 1);
- if ((desc_base = kmalloc(i, GFP_KERNEL)) == 0)
+ if ((desc_base = (u32)kmalloc(i, GFP_KERNEL)) == 0)
return 0;
desc_base = ALIGN_ADDR(desc_base, sizeof(au1x_ddma_desc_t));
|