Skip to content

Commit e446f18

Browse files
committed
mm: remove unused argument from create_cache()
That root_cache argument is unused so remove it. Link: https://lore.kernel.org/r/[email protected] Acked-by: Mike Rapoport (Microsoft) <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent c0390d5 commit e446f18

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mm/slab_common.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ struct kmem_cache *find_mergeable(unsigned int size, unsigned int align,
204204
static struct kmem_cache *create_cache(const char *name,
205205
unsigned int object_size, unsigned int align,
206206
slab_flags_t flags, unsigned int useroffset,
207-
unsigned int usersize, void (*ctor)(void *),
208-
struct kmem_cache *root_cache)
207+
unsigned int usersize, void (*ctor)(void *))
209208
{
210209
struct kmem_cache *s;
211210
int err;
@@ -334,7 +333,7 @@ kmem_cache_create_usercopy(const char *name,
334333

335334
s = create_cache(cache_name, size,
336335
calculate_alignment(flags, align, size),
337-
flags, useroffset, usersize, ctor, NULL);
336+
flags, useroffset, usersize, ctor);
338337
if (IS_ERR(s)) {
339338
err = PTR_ERR(s);
340339
kfree_const(cache_name);

0 commit comments

Comments
 (0)