projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
754e0b0
)
mm/slob: make kmem_cache_boot static
author
Miaohe Lin
<linmiaohe@huawei.com>
Thu, 17 Feb 2022 08:58:42 +0000
(16:58 +0800)
committer
Vlastimil Babka
<vbabka@suse.cz>
Mon, 21 Feb 2022 10:38:02 +0000
(11:38 +0100)
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
mm/slob.c
patch
|
blob
|
history
diff --git
a/mm/slob.c
b/mm/slob.c
index 60c5842215f1b1773519a69155b0e657e2d2dd90..1179bcad2df85acc111a241fd7a72e394fcc216a 100644
(file)
--- 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 = {
+st
atic st
ruct kmem_cache kmem_cache_boot = {
.name = "kmem_cache",
.size = sizeof(struct kmem_cache),
.flags = SLAB_PANIC,