lib: Add CONFIG_LIB_KMEM_CACHE for full kmem_cache support
Add a Kconfig option to control whether full kmem_cache_free() and kmem_cache_destroy() implementations are provided in lib/linux_compat.c Most boards do not need these functions, so they can use simple inline stubs in slab.h. Subsystems like ext4 that require proper cache management can select CONFIG_LIB_KMEM_CACHE. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
@@ -396,6 +396,14 @@ config TPL_TINY_MEMSET
|
||||
config RBTREE
|
||||
bool
|
||||
|
||||
config LIB_KMEM_CACHE
|
||||
bool "Enable full kmem_cache implementation"
|
||||
help
|
||||
Provide a proper kmem_cache implementation in lib/linux_compat.c
|
||||
that tracks allocated objects. This is needed by subsystems like
|
||||
ext4 that require cache management. When disabled, simple inline
|
||||
stubs are used instead.
|
||||
|
||||
config BITREVERSE
|
||||
bool "Bit reverse library from Linux"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user