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

2019-04-16 Thread Catalin Marinas
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

[PATCH] kmemleak: fix unused-function warning

2019-04-16 Thread Arnd Bergmann
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