From 303cd69394bb01f7ce0ce7509b3bd02f34795c05 Mon Sep 17 00:00:00 2001 From: Chengming Zhou Date: Wed, 21 Feb 2024 12:12:53 +0000 Subject: mm, slab: remove unused object_size parameter in kmem_cache_flags() We don't use the object_size parameter in kmem_cache_flags(), so just remove it. Signed-off-by: Chengming Zhou Signed-off-by: Vlastimil Babka --- mm/slab.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mm/slab.h') diff --git a/mm/slab.h b/mm/slab.h index 9abec38be1d0..6b879d8e8a7a 100644 --- a/mm/slab.h +++ b/mm/slab.h @@ -433,8 +433,7 @@ struct kmem_cache * __kmem_cache_alias(const char *name, unsigned int size, unsigned int align, slab_flags_t flags, void (*ctor)(void *)); -slab_flags_t kmem_cache_flags(unsigned int object_size, - slab_flags_t flags, const char *name); +slab_flags_t kmem_cache_flags(slab_flags_t flags, const char *name); static inline bool is_kmalloc_cache(struct kmem_cache *s) { -- cgit v1.2.3-70-g09d2