From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2970CC4CEC7 for ; Mon, 16 Sep 2019 04:54:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 04CE3214AF for ; Mon, 16 Sep 2019 04:54:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728386AbfIPEyQ (ORCPT ); Mon, 16 Sep 2019 00:54:16 -0400 Received: from mga18.intel.com ([134.134.136.126]:24862 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbfIPEyP (ORCPT ); Mon, 16 Sep 2019 00:54:15 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Sep 2019 21:54:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,492,1559545200"; d="scan'208";a="190964364" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 15 Sep 2019 21:54:12 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1i9j1g-0003jq-5a; Mon, 16 Sep 2019 12:54:12 +0800 Date: Mon, 16 Sep 2019 12:53:50 +0800 From: kbuild test robot To: Pengfei Li Cc: kbuild-all@01.org, akpm@linux-foundation.org, vbabka@suse.cz, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, guro@fb.com, Pengfei Li Subject: [RFC PATCH] mm, slab_common: all_kmalloc_info[] can be static Message-ID: <20190916045350.2buptf4exdnbxttf@48261080c7f1> References: <20190915170809.10702-6-lpf.vector@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190915170809.10702-6-lpf.vector@gmail.com> X-Patchwork-Hint: ignore User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes: 95f3b3d20e9b ("mm, slab_common: Make kmalloc_caches[] start at size KMALLOC_MIN_SIZE") Signed-off-by: kbuild test robot --- 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