From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5CA2C2D0A8 for ; Mon, 28 Sep 2020 14:49:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 28F5821941 for ; Mon, 28 Sep 2020 14:49:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="ba2fg2ve" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 28F5821941 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B83D56B005D; Mon, 28 Sep 2020 10:49:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B33D46B0062; Mon, 28 Sep 2020 10:49:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A70B76B0068; Mon, 28 Sep 2020 10:49:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0008.hostedemail.com [216.40.44.8]) by kanga.kvack.org (Postfix) with ESMTP id 90D596B005D for ; Mon, 28 Sep 2020 10:49:10 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 4295B181AE86D for ; Mon, 28 Sep 2020 14:49:10 +0000 (UTC) X-FDA: 77312752860.25.boot15_13164db27182 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id CD5D41804E501 for ; Mon, 28 Sep 2020 14:49:07 +0000 (UTC) X-HE-Tag: boot15_13164db27182 X-Filterd-Recvd-Size: 2520 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf37.hostedemail.com (Postfix) with ESMTP for ; Mon, 28 Sep 2020 14:49:07 +0000 (UTC) Received: from kernel.org (unknown [87.71.73.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B634D2083B; Mon, 28 Sep 2020 14:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601304546; bh=9LRxtxjyRy0Tw9U1jNadFJt67c+Ahhm98hMYDQDjTTg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ba2fg2veNGOE4aRm0TVbk4dvqABZ5SimbcXc93q824WJMZ/DcSnVw+Xbbdimi9OyV 38jQWoqDTCsufOg/e1f0Y3D3cX9MGnrdl9Kq54QmCoEtRUbLrtm/hAtcPy1Ub0Urv4 o7vjAiSM1O5us9js/ynQ9P7xECoEUeXRE94K+HUA= Date: Mon, 28 Sep 2020 17:49:00 +0300 From: Mike Rapoport To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: Re: [PATCH] mm: remove unused early_pfn_valid() Message-ID: <20200928144900.GA2142832@kernel.org> References: <20200923162915.26935-1-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200923162915.26935-1-rppt@kernel.org> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: ping? On Wed, Sep 23, 2020 at 07:29:15PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > The early_pfn_valid() macro is defined by it is never used. > Remove it. > > Signed-off-by: Mike Rapoport > --- > include/linux/mmzone.h | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > index 8379432f4f2f..38264363b0d4 100644 > --- a/include/linux/mmzone.h > +++ b/include/linux/mmzone.h > @@ -1376,7 +1376,6 @@ static inline unsigned long next_present_section_nr(unsigned long section_nr) > #define pfn_to_nid(pfn) (0) > #endif > > -#define early_pfn_valid(pfn) pfn_valid(pfn) > void sparse_init(void); > #else > #define sparse_init() do {} while (0) > @@ -1396,10 +1395,6 @@ struct mminit_pfnnid_cache { > int last_nid; > }; > > -#ifndef early_pfn_valid > -#define early_pfn_valid(pfn) (1) > -#endif > - > /* > * If it is possible to have holes within a MAX_ORDER_NR_PAGES, then we > * need to check pfn validity within that MAX_ORDER_NR_PAGES block. > -- > 2.28.0 > -- Sincerely yours, Mike.