Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37253449rwd; Tue, 11 Jul 2023 11:30:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJsgZYwEpYVKabLkJmDHcQzapy6d1+eTo761FzEpTkMjKKNeOROEdCmb6EBGzY9t3C7lMj X-Received: by 2002:a2e:964e:0:b0:2b6:fa3f:9233 with SMTP id z14-20020a2e964e000000b002b6fa3f9233mr10003761ljh.46.1689100243798; Tue, 11 Jul 2023 11:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689100243; cv=none; d=google.com; s=arc-20160816; b=Wp0wyCUtR/1sIZI+ZiZ8F7HLs0GMKV7e79T3/RSHUpp50jqNMlItDhbapeTuwV+w0J EVG/dubxB/HH6E4CAhm7SndZ2qy20HWZqIlTmvpPHWMNBNES/W1cytUzsI24noGU93gM IfeYO+4iHMbt7eerG1PJTGAjls1sgwxc6fps+eY9wL5nKViJwWfaDbhW4I5qedUKY+Dm W3AaNakT11UwidDSGON2Y79EKWcwVAp8VtX41g3BkDj9Fx009Ng31VHZJbB268a76gr9 YYLnbWISriRGrSnlRD4huvPlD8daD/MYV/YzhR8Zr7ZPdpk3vyRXzaywmac67/5YiVUp 33xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z/5nII/IAyl2DhFzFDJMeYq+GbaTD/GFbTTn6IYkjwQ=; fh=kLWTA/JqXw0E9aBArL424GvpPbLsn15PwD9a+1Qlyzs=; b=ukShQi56Kbees9NehMrwTNH3LM4ibr97rGjTiPRfaGWMNcCrAhV1uCwoeefeUqM+e5 wHHXGlCDTlHiPsqIvYGgeQdSRZhJ/KhGsthDeXVI8H5BD3wt1p+T84iPnc0cLP7oXiRA BrEulXyRaAZj8W8VeGC+xDJHeIhVk8tU8wX+EuV5iNTIXZYt15gcAU/hNJ6dHy0aWD3q ZtI/AmkP30Qv82k7T1iT3c4ucYb2qMzM+g07RyP4qY1bvvEbpz5ynI08ZmHtw0rNLGU7 +HDGRX2k2d+wqNPau5ujDLViZ7OjC2H9gg1sAVb0LSlYR1SN6tLCjd4PcCt1DUZSIvF9 651w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n36mkgn0; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ox29-20020a170907101d00b00988f21df36esi2607379ejb.594.2023.07.11.11.29.51; Tue, 11 Jul 2023 11:30:43 -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=@kernel.org header.s=k20201202 header.b=n36mkgn0; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232016AbjGKSTh (ORCPT + 99 others); Tue, 11 Jul 2023 14:19:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbjGKSTg (ORCPT ); Tue, 11 Jul 2023 14:19:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEB12E0 for ; Tue, 11 Jul 2023 11:19:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 548FB615A5 for ; Tue, 11 Jul 2023 18:19:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0BB5C433C7; Tue, 11 Jul 2023 18:19:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689099574; bh=c6CJn4wg4GYJHZ50FiH/PbN3lJ3s+Z+GdzWo9pTlDx8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n36mkgn0OeHFlLMol5tC9PRLk/C5T6N2niyhSN+dd2iTX1aXrVkks/bVZ8PEOadak uD+7JcShcLfXbjb8bUhRGZh2rKDSM3plZMh4FS+UXIXkdoJjjuGpdUp0aNhy2FFkt5 ry1poKJTTz0eSo90uDE7p4VT3mG4S//TAlCPKnAX0my/Iah3fhiKK5hL58JSTqawKF 67/9LUASchfzRWhyT5q6D36h+7b6TW4Rwf83tMuIBl69b7390RSOz4qEtIzpbj0pSD 0nvwUpE8iryzBANK8ZoA/QGAk4zb+na6epCXcOsHEC3odwyNZIjun4bmkuPa7ml9Ap GwzrRi0mb31WA== Date: Tue, 11 Jul 2023 21:19:24 +0300 From: Mike Rapoport To: Haifeng Xu Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/mm_init.c: mark check_for_memory() as __init Message-ID: <20230711181924.GB1901145@kernel.org> References: <20230710093750.1294-1-haifeng.xu@shopee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230710093750.1294-1-haifeng.xu@shopee.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 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 Reviewed-by: Mike Rapoport (IBM) > --- > 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 > -- Sincerely yours, Mike.