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 79E5FC2D0A8 for ; Mon, 28 Sep 2020 14:49:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2B6342083B for ; Mon, 28 Sep 2020 14:49:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601304548; bh=9LRxtxjyRy0Tw9U1jNadFJt67c+Ahhm98hMYDQDjTTg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=FNDvCnvWTK4NjVLHD1mQRYOqdP4g4ncN5t6/JW81simx73QTnzzQ4MdNGih3OV5p3 kb4of18TqNq1woWkSuyvKEfN97Bt5Biw7KnMWpNv9OWQirx2IpBo9qsR7Vq2Atlp0S tocdmaxe7OePWS49PVLuAJqXGu3ftVI4ww1/fbxI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726668AbgI1OtH (ORCPT ); Mon, 28 Sep 2020 10:49:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:54158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgI1OtG (ORCPT ); Mon, 28 Sep 2020 10:49:06 -0400 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.