Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp994029rwp; Thu, 13 Jul 2023 04:41:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlEQDF/IR5F7cMcaULwaJU15bzk//O08o06X2hQ6snDNzr10kaawceowDELa2nHGLaM4KfgW X-Received: by 2002:a17:90b:118a:b0:263:5c30:2cf8 with SMTP id gk10-20020a17090b118a00b002635c302cf8mr1220938pjb.0.1689248466969; Thu, 13 Jul 2023 04:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689248466; cv=none; d=google.com; s=arc-20160816; b=haYrc8MXstqEXW17KcGtD7/bHmTSWIhotktGyL950trLlsKLdzyVIbpmtfUGrGajfO ggrXo1vFuVRBEn1dfVU13r7YLzzOqQShfrQxywuX4Z1TB1lZIib0+jBR9MxS4EGjhoUj +jCQlUsyjypPj7+4GvZvMk0D8MM8ZpDUrwYlwNwFmL8fCY/bDHCK7Z27hHYfzmLGCPqe eZL/Tf0UfuEf16qLgrldeGA66RGpP1epJclAmPzskWVsIMEp6Eqh8i4QiNMjdE9q+7YN J8ykkXdkCxmqUsxNXfA+cqr3XasrJn5MGOzHA51JRqXO1zx0ppK81CWIuTOB34cgpOR4 Giew== 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; bh=BDon5przCdCnD+X37FYagCGSnRejFjuJjdxdMpSJv4M=; fh=6JkLsQNh8t7QCnanyoUzwLCp1Am7gV5cvseuyPLHqrY=; b=E9GG4yZb8kn47KAydxUB+MLHw5F6GdUB6KMjnufs3Mv6abCkY32QisHvQhR1CAPylp RL813uNrYBZZd0aoGYDXHn5Umi3N4CO/St8mFQD4O7RILc3Zrwt/n/+GuZwTEVi65tvP c2lTRz9AVNa23CnOX+7ieH3ZQxslb4BZjMgjQk4hIH/dRfzl8pn4k0A9q9JLH9QNG6cE x1ZJ9LuGOwmH1ssv8kL+bL/82iXqOQ3pEsvZEMfwv069bISzaQ87YKaLwm70TRpMjIzs zlxJXhPxI+so8BFocCyVTLel7XG9ZZedldmrsK4Pgf8D2MH9DIqUC28u9tt9ks5s2QcZ gjAQ== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nv5-20020a17090b1b4500b00263bfa6e205si13353638pjb.50.2023.07.13.04.40.55; Thu, 13 Jul 2023 04:41:06 -0700 (PDT) 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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233454AbjGMLVw (ORCPT + 99 others); Thu, 13 Jul 2023 07:21:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232263AbjGMLVu (ORCPT ); Thu, 13 Jul 2023 07:21:50 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8D5AD198A for ; Thu, 13 Jul 2023 04:21:18 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D66EA1576; Thu, 13 Jul 2023 04:22:00 -0700 (PDT) Received: from [10.163.49.144] (unknown [10.163.49.144]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 97EF53F740; Thu, 13 Jul 2023 04:21:16 -0700 (PDT) Message-ID: <14549550-d8d1-612b-fc6a-4b1145784cf5@arm.com> Date: Thu, 13 Jul 2023 16:51:13 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] mm/mm_init.c: mark check_for_memory() as __init Content-Language: en-US To: Haifeng Xu , rppt@kernel.org Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230710093750.1294-1-haifeng.xu@shopee.com> From: Anshuman Khandual In-Reply-To: <20230710093750.1294-1-haifeng.xu@shopee.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 On 7/10/23 15:07, Haifeng Xu wrote: > The only caller of check_for_memory() is free_area_init(), which > is annotated with __init, so it should be safe to also mark the > former as __init. > > Signed-off-by: Haifeng Xu Reviewed-by: Anshuman Khandual > --- > mm/mm_init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/mm_init.c b/mm/mm_init.c > index a1963c3322af..a313d1828a6c 100644 > --- a/mm/mm_init.c > +++ b/mm/mm_init.c > @@ -1737,7 +1737,7 @@ static void __init free_area_init_node(int nid) > } > > /* Any regular or high memory on that node ? */ > -static void check_for_memory(pg_data_t *pgdat) > +static void __init check_for_memory(pg_data_t *pgdat) > { > enum zone_type zone_type; >