Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35123813rwd; Mon, 10 Jul 2023 02:59:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbnTPtn5owbwxlIccRP/hu0rxGSABIXrh+FRCSu6G0RDdOP96ee5gCflBA0/OG2VS9vl9p X-Received: by 2002:a9d:6252:0:b0:6b9:1473:7fa3 with SMTP id i18-20020a9d6252000000b006b914737fa3mr8578716otk.27.1688983174598; Mon, 10 Jul 2023 02:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688983174; cv=none; d=google.com; s=arc-20160816; b=dko+Rf+hVpUJS9pG5N4vRWjbpF1Hbz3F2ZhHKMdd3goJ4+Yt5WhkyHFIG6bbG3nRGn 2SMqxmI4b0uhWG9E8uvwI9maVcrM/AYg6MPGZUIAtzz1tARj4a97A8Fhvv1GDE2d8FRD vQDSfnHq3waaebxcQRdC9VkdnQ0NMDrXFGe83gFxP4MI1TZeTgzzzoyrzgwdPN/tHTmw n4oMxZ9Fnhhr8dF8vTWBlAYe/QL6CfuaLMcZn/kp0S3LVtc158/T9JxP7RhjovV32yzS +eVyIc0Cno4qMr4+H7g+QSQg7ej2BzaZ8AZxshb9tGzRy6CmGqMw9rtcFB6LmXiXd+d7 m7qw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 13-20020a630c4d000000b0054f78775084si8408737pgm.125.2023.07.10.02.59.22; Mon, 10 Jul 2023 02:59:34 -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 S230492AbjGJJlb (ORCPT + 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 ); 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 ; Mon, 10 Jul 2023 02:38:10 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6b7541d885cso3303361a34.3 for ; 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 To: rppt@kernel.org Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Haifeng Xu 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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