]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - mm/kmemleak.c
Merge branch 'fixes' into arm/soc
[linux.git] / mm / kmemleak.c
index 6c318f5ac234f40237aec9a0bca5c9e7791cd5dc..2e435b8142e51ac9237110b451b750a6d4423fcc 100644 (file)
@@ -1401,6 +1401,7 @@ static void scan_block(void *_start, void *_end,
 /*
  * Scan a large memory block in MAX_SCAN_SIZE chunks to reduce the latency.
  */
+#ifdef CONFIG_SMP
 static void scan_large_block(void *start, void *end)
 {
        void *next;
@@ -1412,6 +1413,7 @@ static void scan_large_block(void *start, void *end)
                cond_resched();
        }
 }
+#endif
 
 /*
  * Scan a memory block corresponding to a kmemleak_object. A condition is