Re: [PATCH] kmemleak: fix unused-function warning

From: Catalin Marinas
Date: Tue Apr 16 2019 - 09:24:09 EST


On Tue, Apr 16, 2019 at 02:31:24PM +0200, Arnd Bergmann wrote:
> The only references outside of the #ifdef have been removed,
> so now we get a warning in non-SMP configurations:
>
> mm/kmemleak.c:1404:13: error: unused function 'scan_large_block' [-Werror,-Wunused-function]
>
> Add a new #ifdef around it.
>
> Fixes: 298a32b13208 ("kmemleak: powerpc: skip scanning holes in the .bss section")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>