Re: [PATCH] mm-cma-make-kmemleak-ignore-cma-regions-fix

2014-10-30 Thread Michal Hocko
On Thu 30-10-14 09:47:04, Michal Hocko wrote: > include linux/io.h to get phys_to_virt declaration and fix the following > compile error: > mm/cma.c:288:4: error: implicit declaration of function ‘phys_to_virt’ > [-Werror=implicit-function-declaration] > kmemleak_ignore(phys_to_virt(addr));

[PATCH] mm-cma-make-kmemleak-ignore-cma-regions-fix

2014-10-30 Thread Michal Hocko
include linux/io.h to get phys_to_virt declaration and fix the following compile error: mm/cma.c:288:4: error: implicit declaration of function ‘phys_to_virt’ [-Werror=implicit-function-declaration] kmemleak_ignore(phys_to_virt(addr)); Signed-off-by: Michal Hocko --- mm/cma.c | 1 + 1 file

[PATCH] mm-cma-make-kmemleak-ignore-cma-regions-fix

2014-10-30 Thread Michal Hocko
include linux/io.h to get phys_to_virt declaration and fix the following compile error: mm/cma.c:288:4: error: implicit declaration of function ‘phys_to_virt’ [-Werror=implicit-function-declaration] kmemleak_ignore(phys_to_virt(addr)); Signed-off-by: Michal Hocko mho...@suse.cz --- mm/cma.c

Re: [PATCH] mm-cma-make-kmemleak-ignore-cma-regions-fix

2014-10-30 Thread Michal Hocko
On Thu 30-10-14 09:47:04, Michal Hocko wrote: include linux/io.h to get phys_to_virt declaration and fix the following compile error: mm/cma.c:288:4: error: implicit declaration of function ‘phys_to_virt’ [-Werror=implicit-function-declaration] kmemleak_ignore(phys_to_virt(addr)); Ohh,

Re: [PATCH] mm/cma: Make kmemleak ignore CMA regions

2014-10-23 Thread Catalin Marinas
On 23 October 2014 21:22, Andrew Morton wrote: > On Tue, 21 Oct 2014 14:14:56 +0200 Thierry Reding > wrote: > >> From: Thierry Reding >> >> kmemleak will add allocations as objects to a pool. The memory allocated >> for each object in this pool is periodically searched for pointers to >> other

Re: [PATCH] mm/cma: Make kmemleak ignore CMA regions

2014-10-23 Thread Andrew Morton
On Tue, 21 Oct 2014 14:14:56 +0200 Thierry Reding wrote: > From: Thierry Reding > > kmemleak will add allocations as objects to a pool. The memory allocated > for each object in this pool is periodically searched for pointers to > other allocated objects. This only works for memory that is

Re: [PATCH] mm/cma: Make kmemleak ignore CMA regions

2014-10-23 Thread Andrew Morton
On Tue, 21 Oct 2014 14:14:56 +0200 Thierry Reding thierry.red...@gmail.com wrote: From: Thierry Reding tred...@nvidia.com kmemleak will add allocations as objects to a pool. The memory allocated for each object in this pool is periodically searched for pointers to other allocated objects.

Re: [PATCH] mm/cma: Make kmemleak ignore CMA regions

2014-10-23 Thread Catalin Marinas
On 23 October 2014 21:22, Andrew Morton a...@linux-foundation.org wrote: On Tue, 21 Oct 2014 14:14:56 +0200 Thierry Reding thierry.red...@gmail.com wrote: From: Thierry Reding tred...@nvidia.com kmemleak will add allocations as objects to a pool. The memory allocated for each object in

[PATCH] mm/cma: Make kmemleak ignore CMA regions

2014-10-21 Thread Thierry Reding
From: Thierry Reding kmemleak will add allocations as objects to a pool. The memory allocated for each object in this pool is periodically searched for pointers to other allocated objects. This only works for memory that is mapped into the kernel's virtual address space, which happens not to be

[PATCH] mm/cma: Make kmemleak ignore CMA regions

2014-10-21 Thread Thierry Reding
From: Thierry Reding tred...@nvidia.com kmemleak will add allocations as objects to a pool. The memory allocated for each object in this pool is periodically searched for pointers to other allocated objects. This only works for memory that is mapped into the kernel's virtual address space, which