mm/slob: make kmem_cache_boot static
kmem_cache_boot is never accessed outside slob.c. Make it static. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Link: https://lore.kernel.org/r/20220217085842.29032-1-linmiaohe@huawei.com
This commit is contained in:
parent
754e0b0e35
commit
bd53ce4da2
@ -708,7 +708,7 @@ int __kmem_cache_shrink(struct kmem_cache *d)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct kmem_cache kmem_cache_boot = {
|
static struct kmem_cache kmem_cache_boot = {
|
||||||
.name = "kmem_cache",
|
.name = "kmem_cache",
|
||||||
.size = sizeof(struct kmem_cache),
|
.size = sizeof(struct kmem_cache),
|
||||||
.flags = SLAB_PANIC,
|
.flags = SLAB_PANIC,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user