[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190916045350.2buptf4exdnbxttf@48261080c7f1>
Date: Mon, 16 Sep 2019 12:53:50 +0800
From: kbuild test robot <lkp@...el.com>
To: Pengfei Li <lpf.vector@...il.com>
Cc: kbuild-all@...org, akpm@...ux-foundation.org, vbabka@...e.cz,
cl@...ux.com, penberg@...nel.org, rientjes@...gle.com,
iamjoonsoo.kim@....com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, guro@...com,
Pengfei Li <lpf.vector@...il.com>
Subject: [RFC PATCH] mm, slab_common: all_kmalloc_info[] can be static
Fixes: 95f3b3d20e9b ("mm, slab_common: Make kmalloc_caches[] start at size KMALLOC_MIN_SIZE")
Signed-off-by: kbuild test robot <lkp@...el.com>
---
slab_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/slab_common.c b/mm/slab_common.c
index 2aed30deb0714..bf1cf4ba35f86 100644
--- a/mm/slab_common.c
+++ b/mm/slab_common.c
@@ -1118,7 +1118,7 @@ struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags)
* time. kmalloc_index() supports up to 2^26=64MB, so the final entry of the
* table is kmalloc-67108864.
*/
-const struct kmalloc_info_struct all_kmalloc_info[] __initconst = {
+static const struct kmalloc_info_struct all_kmalloc_info[] __initconst = {
SET_KMALLOC_SIZE( 8, 8), SET_KMALLOC_SIZE( 16, 16),
SET_KMALLOC_SIZE( 32, 32), SET_KMALLOC_SIZE( 64, 64),
#if KMALLOC_SIZE_96_EXIST == 1
Powered by blists - more mailing lists