Message ID | 20230710093750.1294-1-haifeng.xu@shopee.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4905257vqx; Mon, 10 Jul 2023 02:52:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlEmfHWEyOWXFiDpl1h7L66znKjG1f+SOK5eLglYUZP/DXImQbN0DwwqvD/kSXCS7MAGAxvk X-Received: by 2002:a05:6358:93a4:b0:134:c4dc:2c43 with SMTP id h36-20020a05635893a400b00134c4dc2c43mr11932803rwb.28.1688982764338; Mon, 10 Jul 2023 02:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688982764; cv=none; d=google.com; s=arc-20160816; b=CTm0EiRkDRR+SFeTk4RFdTbf8+Qz/tApc6S6Xjd47z5ztrQAecaNFf84oHxbjcYAjo r12h6H4IHxHt6NoMAOAXWUl/ni11M5WKubl+7jiE9RbhN3ttS1q429xAf7VssXHj7Rq0 0W50Mn/GgN0lfIQXzymkLqWB70WUE19WDd1XsvLvQbqvYClTrXmPbvW3GmUAZG35r6DG F/6bHjo1pRs7h0PXj5N43WXYKW9/Y2JanJjgjZIJ/4t5Qiao/thFPxbcEv3qqCJGD8bT foWR8bkycWjfDvciY3sO1g55hW5DvQP9R7xccAJZPCHNqpnq/isiqGHbQfvCqeQpdcCX cmJg== 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:dkim-signature; bh=ajnJvW3EoQVJM0A0noZ1rC2u8boZf4rH9jk39u5cacQ=; fh=pBSutRcT3Ke6r121PJAguReVUAPbpSbt/jkhvupN7yA=; b=q9dZp/MIWrecaTJSyWnnTp2qPR1ivHTHpbnu0r3WmBh6sK1pe5r6w09SskSvLU7mJ8 fZFxIa+/abChTkTtIEa9YJoWU32IGRLLIqAkgsGm35dI3a0OZak8VW7S+NBSq8eLu9S+ Gp6G+0BU25mFvwjvK34sVeExZ7QU6Ya/PtBbRWums4/HuZz1QDJLF6W4DG35TdRSI73N RnkBk2Kxfn7PuXbhBiLWdUdBbT6R9SbqSXQs6NHjv80TiQlKV1R6DMkAdipAmU1YxUbS pSfAtbdNYM5wSRIpwT4Ga2BFFiJuCAt46lhqu3cN0czcTr4iGHWX84fHXv0/N/fxITVt Fv7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=gw73FRuZ; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 32-20020a631860000000b00553c6af75d5si8784744pgy.315.2023.07.10.02.52.31; Mon, 10 Jul 2023 02:52:44 -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; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=gw73FRuZ; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233116AbjGJJlb (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Mon, 10 Jul 2023 05:41:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbjGJJkF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 10 Jul 2023 05:40:05 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95D6DB7 for <linux-kernel@vger.kernel.org>; Mon, 10 Jul 2023 02:38:10 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6b7541d885cso3303361a34.3 for <linux-kernel@vger.kernel.org>; Mon, 10 Jul 2023 02:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1688981890; x=1691573890; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ajnJvW3EoQVJM0A0noZ1rC2u8boZf4rH9jk39u5cacQ=; b=gw73FRuZrFPnkV5NTcmHiATnoKGdlzBbk7Zha3RsDNwHj1pXcT7rz3tSc1f4hJwzJU ZjtxAGIihXOLHxbL/Uehbm9jhqvqJbEL8EqcmyI3Vir7NACkhcGy8YyQK1fANGfNI8CK OP0tLpTYfL8RIAztdrIBBst02TVn8QF/cvOzBE8KKFTobjUU/XwcbYuSUwLLNFE4Jvf3 1DQ3l4bHad7clIktBN8GpVZLbX9wWeLHL1P5tglldY06oBIcnYxao5hQsIybyhucUlcY 252LqvYSm5IKrUGcIc/JFjzD2QQ3wse4XpjsOoFYYSlqA0P45VShI3YYGdoEa0MBBAqV s/dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688981890; x=1691573890; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ajnJvW3EoQVJM0A0noZ1rC2u8boZf4rH9jk39u5cacQ=; b=Egg3CmA6/8fzrbr5nn8rz+DOp9LBO32Bdvz6zOAeYn3gnXqQ30uQWsUxcd6cjaaUrM bWC7s4qL1rqtj/D+IziAbXz0wU9z5JIiyr6jWGvCTN8XjFVXmB1i6eMCTLiAWeiXlMDr PUTnh4ZkYNYtZc7XFJ7+KS/wuB/7eYihBPVmerk2WrXbL9PuYC6cUFSvzB4z1lt1yFr9 MT/8mlBpCMq9tUo7TTmPFQRQ60wudF0ryGl9/dGLuAVKC7QUz/R2VhtVvQx62hy2gnJT jOizJLJX/4niCm7deqx/DBB8S9n8l2FQeghppiOFlOYlILudAX3ChIawpvLMvnlZxKjl D5gA== X-Gm-Message-State: ABy/qLbLaoVzGijDO1IiMBZvnJBMbVn/VTH6i6fxa2qLZQ5f+AcnlyXs o2bFsAFtSOSgjJQUMKGDSrJUkTYa7+NaJdwMKS6mHA== X-Received: by 2002:a05:6830:22f6:b0:6b7:4e25:4c08 with SMTP id t22-20020a05683022f600b006b74e254c08mr10815570otc.12.1688981889863; Mon, 10 Jul 2023 02:38:09 -0700 (PDT) Received: from ubuntu-hf2.default.svc.cluster.local ([101.127.248.173]) by smtp.gmail.com with ESMTPSA id w18-20020a639352000000b0055c430c311asm2089032pgm.33.2023.07.10.02.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 02:38:09 -0700 (PDT) From: Haifeng Xu <haifeng.xu@shopee.com> To: rppt@kernel.org Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Haifeng Xu <haifeng.xu@shopee.com> Subject: [PATCH] mm/mm_init.c: mark check_for_memory() as __init Date: Mon, 10 Jul 2023 09:37:50 +0000 Message-Id: <20230710093750.1294-1-haifeng.xu@shopee.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771026791284490313 X-GMAIL-MSGID: 1771026791284490313 |
Series |
mm/mm_init.c: mark check_for_memory() as __init
|
|
Commit Message
Haifeng Xu
July 10, 2023, 9:37 a.m. UTC
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 <haifeng.xu@shopee.com>
---
mm/mm_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, Jul 10, 2023 at 09:37:50AM +0000, 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 <haifeng.xu@shopee.com> Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org> > --- > 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; > > -- > 2.25.1 >
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 <haifeng.xu@shopee.com> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> > --- > 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; >
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;