Re: [ 31/54] kmemleak: Fix the kmemleak tracking of the percpuareas with !SMP
From: Christoph Biedl
Date: Sat May 19 2012 - 09:36:14 EST
Greg KH wrote...
> 3.0-stable review patch. If anyone has any objections, please let me know.
> From: Catalin Marinas <catalin.marinas@xxxxxxx>
>
> commit 100d13c3b5b9410f604b86f5e0a34da64b8cf659 upstream.
> + /* kmemleak tracks the percpu allocations separately */
> + kmemleak_free(fc);
That one causes:
mm/percpu.c: In function âsetup_per_cpu_areasâ:
mm/percpu.c:1877: error: implicit declaration of function âkmemleak_freeâ
make[1]: *** [mm/percpu.o] Error 1
make: *** [mm] Error 2
Trivial fix, works for me: Add
#include <linux/kmemleak.h>
to mm/percpu.c. FWIW, upstream did this in in f528f0b but I cannot
tell whether that commit is in any way of interest for 3.0.x.
Regards,
Christoph
Attachment:
signature.asc
Description: Digital signature