mm/slob: make kmem_cache_boot static
PATCH 1/1 mm/slob: make kmem_cache_boot static
kmem_cache_boot is never accessed outside slob.c. Make it static.
Signed-off-by Miaohe Lin <[email protected]>
--- mm/slob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/slob.c +1 -1
@@ -708,7 +708,7 @@ int __kmem_cache_shrink(struct kmem_cache *d)return 0 ; } -struct kmem_cache kmem_cache_boot = { +static struct kmem_cache kmem_cache_boot = { .name ="kmem_cache" , .size =sizeof (struct kmem_cache ), .flags =SLAB_PANIC ,
Signature · 1 line
2.23.0
Quoted 3 lines · Miaohe Lin
kmem_cache_bootis never accessed outsideslob.c. Make it static.Signed-off-by Miaohe Lin <[email protected]>
Thanks, adding to slab tree.
Quoted 17 lines
--- mm/slob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/slob.c +1
-1@@ -708,7 +708,7 @@ int __kmem_cache_shrink(struct kmem_cache *d)return 0 ; } -struct kmem_cache kmem_cache_boot = { +static struct kmem_cache kmem_cache_boot = { .name ="kmem_cache" , .size =sizeof (struct kmem_cache ), .flags =SLAB_PANIC ,
Quoted 3 lines · Miaohe Lin
kmem_cache_bootis never accessed outsideslob.c. Make it static.Signed-off-by Miaohe Lin <[email protected]>
Acked-by David Rientjes <[email protected]>