Re: [PATCH v2 04/23] mm/slab_common: cleanup kmalloc_track_caller()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/14/22 10:57, Hyeonggon Yoo wrote:
> Make kmalloc_track_caller() wrapper of kmalloc_node_track_caller().
> 
> Signed-off-by: Hyeonggon Yoo <42.hyeyoo@xxxxxxxxx>
> ---
>  include/linux/slab.h | 17 ++++++++---------
>  mm/slab.c            |  6 ------
>  mm/slob.c            |  6 ------
>  mm/slub.c            | 22 ----------------------
>  4 files changed, 8 insertions(+), 43 deletions(-)
> 
> diff --git a/include/linux/slab.h b/include/linux/slab.h
> index a3b9d4c20d7e..acdb4b7428f9 100644
> --- a/include/linux/slab.h
> +++ b/include/linux/slab.h
> @@ -639,6 +639,12 @@ static inline __alloc_size(1, 2) void *kcalloc(size_t n, size_t size, gfp_t flag
>  	return kmalloc_array(n, size, flags | __GFP_ZERO);
>  }
>  
> +extern void *__kmalloc_node_track_caller(size_t size, gfp_t flags, int node,
> +					 unsigned long caller) __alloc_size(1);

Update: in v3 remove the extern, it's not necessary and the kernel is slowly
getting rid of them.




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux