Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp824964pxb; Thu, 17 Feb 2022 15:53:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6l7zP1plpSkBs0JRU4rklia0BcndW948h/lFmLBeDpju9M0pagR8biqp8Ftx3ZnEsAGWn X-Received: by 2002:a05:6a00:88a:b0:4df:f3a9:b246 with SMTP id q10-20020a056a00088a00b004dff3a9b246mr5113727pfj.83.1645142017539; Thu, 17 Feb 2022 15:53:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645142017; cv=none; d=google.com; s=arc-20160816; b=Rlun6wM5IqOsuLMJVtof42+/7qpa/Af0+iP6P+V29GO31Qw0LN6uNrF1gaiSaum9b6 2k5te/tXSn1Ffd9Le5CrZfFTFz2VHP1HcRBbuS2dFlMDfkkL4xQG4YjUqP3WEbVoCRk2 kAJ+fWUeMGMSmIFh/E3n0VXBLyYsxu5WN0lwWvDPkY3WXba4PbS4s8Rv/o+1w+l+AcCT o8L/NPapXFEL4IDyvq7b+n8cIxMjdG8hTirbgyaZY/Tnsg9+YMVEuPkwK78px8UOD+cP C3EJPTGKKdZTBe7zWvk9Xaoxl66asaFnb4dgMMl2DOVVC56N3xJEF0LqjABOYPn+1JLv FDSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=uiWVcgKMRF4oGwbYjT6sKnv4e98q38gC3DQhU6hDsqE=; b=OWpMQQix8qRa/g0MsKzExeLnblBYH/xGat62NH/31awmoXutLNNBe0adoUz5njsPN2 pL5cb/HouH4oqZeCHDJrLwh54/kXfKr9mX0pkqBjV9X8nmR7bCI7QoCA69XqvPVqTZx1 by75UCcNE9LIvstZAe5xToI5SnZP5kmzpcuWWSc3lPCMkTCBPaaz9cVButhulwTKLSj4 tTqCVd7AGvJecDXEaE3k1ReY19uTHtbxprnsOkzCS5QJo1pvX/R+ok1ST2GgGDTlAV2r rGqJ1vRZMS+eNH30AJa/Dm2H7tHI+q4clMt+rMPB8LfAgeuuQUGWt2O5UZnK1VN4H8Jd zpgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=aADwiDuo; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g126si9616644pgc.864.2022.02.17.15.53.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 15:53:37 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=aADwiDuo; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 375422D99EE; Thu, 17 Feb 2022 15:26:06 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241820AbiBQRCm (ORCPT + 99 others); Thu, 17 Feb 2022 12:02:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232955AbiBQRCk (ORCPT ); Thu, 17 Feb 2022 12:02:40 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42A581C559B for ; Thu, 17 Feb 2022 09:02:25 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E404D210EA; Thu, 17 Feb 2022 17:02:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1645117343; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uiWVcgKMRF4oGwbYjT6sKnv4e98q38gC3DQhU6hDsqE=; b=aADwiDuoqE3JwbEaVcrqjlcwdosq/AWmzOj0NGiC+00SeKmIoQ7NYwVRLNCcpUF3kGcOeG uhGw1zcJUYYGQjsPfH5B+lMgTKFGXPIouWmolbQkaVQsd4PcQRLc5grwazcWXkdsukOmfb BRPUQ96ALr8Ah+8KcxGD1dUUdSs/VQI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1645117343; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uiWVcgKMRF4oGwbYjT6sKnv4e98q38gC3DQhU6hDsqE=; b=ChP5ULLJBPE0xpkMyYdRm/KZr6LwigNcJu+hmzPe3OOLO2h0ZRdUMiQUb3IEKK7UKNPUhi 8T4f1L8FjRP+iUBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C361013C23; Thu, 17 Feb 2022 17:02:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Lo/OLp9/DmKWDQAAMHmgww (envelope-from ); Thu, 17 Feb 2022 17:02:23 +0000 Message-ID: <1d615078-1417-500d-0521-5d8424da7212@suse.cz> Date: Thu, 17 Feb 2022 18:02:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] mm/slob: make kmem_cache_boot static Content-Language: en-US To: Miaohe Lin , akpm@linux-foundation.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220217085842.29032-1-linmiaohe@huawei.com> From: Vlastimil Babka In-Reply-To: <20220217085842.29032-1-linmiaohe@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 On 2/17/22 09:58, Miaohe Lin wrote: > kmem_cache_boot is never accessed outside slob.c. Make it static. > > Signed-off-by: Miaohe Lin Thanks, adding to slab tree. > --- > 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,