Commit 84380716 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

mm/kmemleak.c: fix unused-function warning

commit dce5b0bdeec61bdbee56121ceb1d014151d5cab1 upstream.

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: default avatarArnd Bergmann <>
Acked-by: default avatarCatalin Marinas <>
Cc: Vincent Whitchurch <>
Cc: Michael Ellerman <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
Cc: Nobuhiro Iwamatsu <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 111d6035
......@@ -1364,6 +1364,7 @@ static void scan_block(void *_start, void *_end,
* Scan a large memory block in MAX_SCAN_SIZE chunks to reduce the latency.
static void scan_large_block(void *start, void *end)
void *next;
......@@ -1375,6 +1376,7 @@ static void scan_large_block(void *start, void *end)
* Scan a memory block corresponding to a kmemleak_object. A condition is
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment