Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp227578pxb; Thu, 17 Feb 2022 02:46:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqnWbIm3jrzdElUnFJq5RohXfc8PCY29W1vqwY7tdA4VzWplw0SySBqtNDJn2nh4EQyNmd X-Received: by 2002:a17:90a:f495:b0:1b9:36ba:e990 with SMTP id bx21-20020a17090af49500b001b936bae990mr2427710pjb.19.1645094792218; Thu, 17 Feb 2022 02:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645094792; cv=none; d=google.com; s=arc-20160816; b=Vif09MTy8sRFDuUTkKlK+6zrWZE5znDhV6fahM45fVgFyYb24lIPZnN0WrMDtnrIFy oCwbToYQnYY3bAFRyCHjKtojqa7Wttf8Hejp/s3dsrIKqwYHs2yRl4KxRMXWy1JsqiKD 17IPSX4BsP/CbUHnpgd2XHovDplE++duot9yvHobc1AhdiYRQLXcQAXzwOITkhULAPGN SjeJdfdrNF1Qwabhy7Z3Ung8U/1VmJI8t6Nc0LJLzd8E1dFG8dfr5TgqlRr/5dQHiF3l TDj2gJD8bQZfL4kwWL01PTnXuqwqFjXju0e7EqyE6bifmg5rhKYrITGzyq+xbCu+SwbX l79g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3Y5PEkn8Cdwxn6rBVxdPHKI+iQ9gJJssNfxE+DhrlCQ=; b=s6Xga43FDIFN84Oy1szEsmeRyW2BhBeYZSH7+YXS9E1j37wTVomOqIJs+jXPbRET3B ASz21HfuN/YYxTL4dSwaYeO+I1v4rosLKVXl4mX5vZSjQmoyH4SrIznCqx/VJv+MXrDG oAdqBZ7800Ozz4b9PwtPkUZ07wSmAS4hPkHBAmBIvo+7UsOdCes7Pij9siokCB5487zd uthImKq2dptdbg5KyfxGooUNyWmG6Qxs9hZIHwaFm0McNP8bpTd989TxdF0pCFfvLhOA Y4faKKMg15zRX5mQUoJfuf//bG3t3MyR5MDzYijMvMynO3cLEvWgT0BwpzkKbvURRC6q x68Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg21si8948499pgb.284.2022.02.17.02.46.17; Thu, 17 Feb 2022 02:46:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238293AbiBQI7p (ORCPT + 99 others); Thu, 17 Feb 2022 03:59:45 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238283AbiBQI7l (ORCPT ); Thu, 17 Feb 2022 03:59:41 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A74FB2AA3B2 for ; Thu, 17 Feb 2022 00:59:25 -0800 (PST) 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kmem_cache_boot is never accessed outside slob.c. Make it static. Signed-off-by: Miaohe Lin --- 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, -- 2.23.0