diff options
author | Chengming Zhou <chengming.zhou@linux.dev> | 2024-02-21 13:12:53 +0100 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2024-02-21 16:20:11 +0100 |
commit | 303cd69394bb01f7ce0ce7509b3bd02f34795c05 (patch) | |
tree | 1d572b85eeae8173a91d0ef7e634a175e3ed11b7 /mm/slab.h | |
parent | mm/slub: remove parameter 'flags' in create_kmalloc_caches() (diff) | |
download | linux-303cd69394bb01f7ce0ce7509b3bd02f34795c05.tar.xz linux-303cd69394bb01f7ce0ce7509b3bd02f34795c05.zip |
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.h | 3 |
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) { |