summaryrefslogtreecommitdiff
path: root/mm/slab.h
diff options
context:
space:
mode:
authorChengming Zhou <chengming.zhou@linux.dev>2024-02-21 12:12:53 +0000
committerVlastimil Babka <vbabka@suse.cz>2024-02-21 16:20:11 +0100
commit303cd69394bb01f7ce0ce7509b3bd02f34795c05 (patch)
tree1d572b85eeae8173a91d0ef7e634a175e3ed11b7 /mm/slab.h
parent66b3dc1f04135f89384af39ec4e38546b82e1510 (diff)
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 <chengming.zhou@linux.dev> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'mm/slab.h')
-rw-r--r--mm/slab.h3
1 files changed, 1 insertions, 2 deletions
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)
{