@@ -337,44 +337,6 @@ struct kmem_cache *__kmem_cache_create_args(const char *name,
337
337
}
338
338
EXPORT_SYMBOL (__kmem_cache_create_args );
339
339
340
- /**
341
- * __kmem_cache_create - Create a cache.
342
- * @name: A string which is used in /proc/slabinfo to identify this cache.
343
- * @size: The size of objects to be created in this cache.
344
- * @align: The required alignment for the objects.
345
- * @flags: SLAB flags
346
- * @ctor: A constructor for the objects.
347
- *
348
- * Cannot be called within a interrupt, but can be interrupted.
349
- * The @ctor is run when new pages are allocated by the cache.
350
- *
351
- * The flags are
352
- *
353
- * %SLAB_POISON - Poison the slab with a known test pattern (a5a5a5a5)
354
- * to catch references to uninitialised memory.
355
- *
356
- * %SLAB_RED_ZONE - Insert `Red` zones around the allocated memory to check
357
- * for buffer overruns.
358
- *
359
- * %SLAB_HWCACHE_ALIGN - Align the objects in this cache to a hardware
360
- * cacheline. This can be beneficial if you're counting cycles as closely
361
- * as davem.
362
- *
363
- * Return: a pointer to the cache on success, NULL on failure.
364
- */
365
- struct kmem_cache * __kmem_cache_create (const char * name , unsigned int size ,
366
- unsigned int align , slab_flags_t flags ,
367
- void (* ctor )(void * ))
368
- {
369
- struct kmem_cache_args kmem_args = {
370
- .align = align ,
371
- .ctor = ctor ,
372
- };
373
-
374
- return __kmem_cache_create_args (name , size , & kmem_args , flags );
375
- }
376
- EXPORT_SYMBOL (__kmem_cache_create );
377
-
378
340
static struct kmem_cache * kmem_buckets_cache __ro_after_init ;
379
341
380
342
/**
0 commit comments