Subject: Re: linux-next: Tree for Mar 19 (uml)

From: Richard Weinberger <[email-masked]>
Date: Mon, 19 Mar 2012 17:14:48 +0100

Am 19.03.2012 16:01, schrieb Randy Dunlap:
>   CC      arch/um/kernel/asm-offsets.s
> In file included from include/linux/mm_types.h:16:0,
>                  from include/linux/sched.h:64,
>                  from arch/x86/um/shared/sysdep/kernel-offsets.h:2,
>                  from arch/um/kernel/asm-offsets.c:1:
> arch/um/include/asm/mmu.h:15:14: error: array type has incomplete element type
> make[2]: *** [arch/um/kernel/asm-offsets.s] Error 1
> 

Looks like this commit introduced the issue:

commit 1ed71e0439cba3609d3c69bf04795e0389cd35e4
Author: Al Viro <[email-masked]>
Date:   Thu Feb 23 01:33:19 2012 -0500

    um: embed ->stub_pages[] into mmu_context

    seriously, kmalloc() for two-element array of pointers?

    Signed-off-by: Al Viro <[email-masked]>

The size of struct page is not known to all users of asm/mmu.h

Thanks,
//richard