diff --git a/include/linux/slab.h b/include/linux/slab.h index c02b9aab2863..22b579642cfd 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -728,7 +728,7 @@ static inline __alloc_size(1) void *kzalloc(size_t size, gfp_t flags) * @flags: the type of memory to allocate (see kmalloc). * @node: memory node from which to allocate */ -static inline void *kzalloc_node(size_t size, gfp_t flags, int node) +static inline __alloc_size(1) void *kzalloc_node(size_t size, gfp_t flags, int node) { return kmalloc_node(size, flags | __GFP_ZERO, node); }