From patchwork Thu Feb 17 08:58:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12749673 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BCD8C433F5 for ; Thu, 17 Feb 2022 08:59:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 21A896B0075; Thu, 17 Feb 2022 03:59:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1CA706B0078; Thu, 17 Feb 2022 03:59:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0B9276B007B; Thu, 17 Feb 2022 03:59:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0144.hostedemail.com [216.40.44.144]) by kanga.kvack.org (Postfix) with ESMTP id F21AB6B0075 for ; Thu, 17 Feb 2022 03:59:29 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id AE1E68249980 for ; Thu, 17 Feb 2022 08:59:29 +0000 (UTC) X-FDA: 79151673258.08.E92F3F5 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf18.hostedemail.com (Postfix) with ESMTP id BC80D1C000A for ; Thu, 17 Feb 2022 08:59:28 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4JzpYc67JJzZfhk; Thu, 17 Feb 2022 16:55:00 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 17 Feb 2022 16:59:23 +0800 From: Miaohe Lin To: , , , , , CC: , , Subject: [PATCH] mm/slob: make kmem_cache_boot static Date: Thu, 17 Feb 2022 16:58:42 +0800 Message-ID: <20220217085842.29032-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf18.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: BC80D1C000A X-Stat-Signature: 4xuugj5tsgkwz773kqo4m5qcb3ii9d9j X-HE-Tag: 1645088368-339106 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: kmem_cache_boot is never accessed outside slob.c. Make it static. Signed-off-by: Miaohe Lin Acked-by: David Rientjes --- mm/slob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,