Re: ia64 broken by transparent huge pages - other arches too?

Tony Luck
2011-01-14T18:50:30Z

On Fri, Jan 14, 2011 at 10:30 AM, Andrea Arcangeli <aarcange@redhat.com> wrote:
> Would you be willing to implement __pmd for ia64 to fix this? Can you
> check if this works?
>
> Thanks a lot,
> Andrea
>
> ========
> Subject: fix ia64 build failure in pmdp_get_and_clear
>
> From: Andrea Arcangeli <aarcange@redhat.com>
>
> Implement __pmd macro for ia64 too.
>
> Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
> ---
>
> diff --git a/arch/ia64/include/asm/page.h b/arch/ia64/include/asm/page.h
> index 41b6d31..961a16f 100644
> --- a/arch/ia64/include/asm/page.h
> +++ b/arch/ia64/include/asm/page.h
> @@ -189,6 +189,7 @@ get_order (unsigned long size)
>  # define pgprot_val(x) ((x).pgprot)
>
>  # define __pte(x)      ((pte_t) { (x) } )
> +# define __pmd(x)      ((pmd_t) { (x) } )
>  # define __pgprot(x)   ((pgprot_t) { (x) } )
>
>  #else /* !STRICT_MM_TYPECHECKS */

Yes that works. Thanks. I'll apply to my ia64 tree and ask Linus to pull it.

-Tony