diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-02-17 16:58:42 +0800 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2022-02-21 11:38:02 +0100 |
commit | bd53ce4da252ddb1ae4257c164f80aea3d8ab90c (patch) | |
tree | 043ef47016892f05af24a1d2ba6eb317f181feb3 /mm/slob.c | |
parent | 754e0b0e35608ed5206d6a67a791563c631cec07 (diff) |
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
Diffstat (limited to 'mm/slob.c')
-rw-r--r-- | mm/slob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slob.c b/mm/slob.c index 60c5842215f1..1179bcad2df8 100644 --- a/mm/slob.c +++ b/mm/slob.c @@ -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, |