Repeat after me Cris developers.. "Size, then flags." :-) aacraid suffers the same affliction. Yay for type-unsafe interfaces.
Signed-off-by: Dave Jones <[EMAIL PROTECTED]> --- 2.6-mm/arch/cris/arch-v32/mm/intmem.c~ 2005-07-09 00:13:54 -04:00 +++ 2.6-mm/arch/cris/arch-v32/mm/intmem.c 2005-07-09 00:14:48 -04:00 @@ -28,7 +28,7 @@ static void crisv32_intmem_init(void) static int initiated = 0; if (!initiated) { struct intmem_allocation* alloc = - (struct intmem_allocation*)kmalloc(GFP_KERNEL, sizeof *alloc); + (struct intmem_allocation*)kmalloc(sizeof *alloc, GFP_KERNEL); INIT_LIST_HEAD(&intmem_allocations); intmem_virtual = ioremap(MEM_INTMEM_START, MEM_INTMEM_SIZE); initiated = 1; @@ -57,7 +57,7 @@ void* crisv32_intmem_alloc(unsigned size if (allocation->size > size + alignment) { struct intmem_allocation* alloc = (struct intmem_allocation*) - kmalloc(GFP_ATOMIC, sizeof *alloc); + kmalloc(sizeof *alloc, GFP_ATOMIC); alloc->status = STATUS_FREE; alloc->size = allocation->size - size - alignment; alloc->offset = allocation->offset + size; @@ -66,7 +66,7 @@ void* crisv32_intmem_alloc(unsigned size if (alignment) { struct intmem_allocation* tmp; tmp = (struct intmem_allocation*) - kmalloc(GFP_ATOMIC, sizeof *tmp); + kmalloc(sizeof *tmp, GFP_ATOMIC); tmp->offset = allocation->offset; tmp->size = alignment; tmp->status = STATUS_FREE; --- 2.6-mm/drivers/scsi/aacraid/commctrl.c~ 2005-07-09 00:14:55 -04:00 +++ 2.6-mm/drivers/scsi/aacraid/commctrl.c 2005-07-09 00:15:04 -04:00 @@ -469,7 +469,7 @@ static int aac_send_raw_srb(struct aac_d goto cleanup; } - user_srbcmd = kmalloc(GFP_KERNEL, fibsize); + user_srbcmd = kmalloc(fibsize, GFP_KERNEL); if (!user_srbcmd) { dprintk((KERN_DEBUG"aacraid: Could not make a copy of the srb\n")); rcode = -ENOMEM; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/