G'day, This has been annoying me since git11, since it is not fixed yet, (git13) I figured I would look at it and send a patch. Someone has probably fixed this somewhere already, but like I said it was annoying me.
<snip> LD .tmp_vmlinux1 drivers/built-in.o: In function `kzalloc': include/linux/slab.h:128: undefined reference to `__you_cannot_kzalloc_that_much' include/linux/slab.h:128: undefined reference to `__you_cannot_kzalloc_that_much' make: *** [.tmp_vmlinux1] Error 1 [EMAIL PROTECTED]:~/linux-2.6.16-git13$ grep -Rn __you_cannot_kzalloc_that_much * Binary file drivers/net/arcnet/com90xx.o matches Binary file drivers/net/arcnet/built-in.o matches Binary file drivers/net/built-in.o matches Binary file drivers/built-in.o matches include/linux/slab.h:127: extern void __you_cannot_kzalloc _that_much(void); include/linux/slab.h:128: __you_cannot_kzalloc_that_much(); The patch below fixes the compilation with 'make allyesconfig'. Signed-off-by: Darren Jenkins <[EMAIL PROTECTED]> --- linux-2.6.16-git13/drivers/net/arcnet/com90xx.c.orig 2006-03-28 01:44:44.000000000 +1100 +++ linux-2.6.16-git13/drivers/net/arcnet/com90xx.c 2006-03-28 01:45:47.000000000 +1100 @@ -125,11 +125,11 @@ static void __init com90xx_probe(void) if (!io && !irq && !shmem && !*device && com90xx_skip_probe) return; - shmems = kzalloc(((0x10000-0xa0000) / 0x800) * sizeof(unsigned long), + shmems = kcalloc(((0x10000-0xa0000) / 0x800), sizeof(unsigned long), GFP_KERNEL); if (!shmems) return; - iomem = kzalloc(((0x10000-0xa0000) / 0x800) * sizeof(void __iomem *), + iomem = kcalloc(((0x10000-0xa0000) / 0x800), sizeof(void __iomem *), GFP_KERNEL); if (!iomem) { kfree(shmems); - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html