On Tue, Apr 26, 2022 at 05:49:08PM +0200, Vlastimil Babka wrote: > 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. Will do in v3. Thanks!