Re: [PATCH 24/58] mm: include/linux/huge_mm.h: Declare is_vma_temporary_stackunconditionally

From: David Rientjes
Date: Mon Nov 19 2012 - 16:36:52 EST


On Sun, 18 Nov 2012, Josh Triplett wrote:

> include/linux/huge_mm.h declares is_vma_temporary_stack inside an ifdef
> CONFIG_TRANSPARENT_HUGEPAGE; however, mm/rmap.c defines the function
> unconditionally. Move the function outside of the ifdef.
>
> This eliminates a warning from gcc (-Wmissing-prototypes) and from
> Sparse (-Wdecl).
>
> mm/rmap.c:1440:6: warning: no previous prototype for âis_vma_temporary_stackâ [-Wmissing-prototypes]
>
> Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>