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=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 6838CC433DF for ; Fri, 16 Oct 2020 02:47:10 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E26DC20878 for ; Fri, 16 Oct 2020 02:47:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="2udBzwR8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E26DC20878 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7A840940043; Thu, 15 Oct 2020 22:47:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 758B7940034; Thu, 15 Oct 2020 22:47:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 694B7940043; Thu, 15 Oct 2020 22:47:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0177.hostedemail.com [216.40.44.177]) by kanga.kvack.org (Postfix) with ESMTP id 3CB0A940034 for ; Thu, 15 Oct 2020 22:47:09 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id D132A3623 for ; Fri, 16 Oct 2020 02:47:08 +0000 (UTC) X-FDA: 77376251736.01.team94_4207ff027219 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id A988310045354 for ; Fri, 16 Oct 2020 02:47:08 +0000 (UTC) X-HE-Tag: team94_4207ff027219 X-Filterd-Recvd-Size: 2471 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf19.hostedemail.com (Postfix) with ESMTP for ; Fri, 16 Oct 2020 02:47:08 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (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 11A6E2087D; Fri, 16 Oct 2020 02:47:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602816427; bh=MOwBn7uyTm9K7UmqBlaGtuzE+7F7Cw2yfpiXSrjcnTA=; h=Date:From:To:Subject:In-Reply-To:From; b=2udBzwR8peHlvt5EV06Kj1QKxpdCUcMwjbzgAzgtWVd8HLo/2D+DIWSpZG876rLww YvyB1T1pMFRi5ASv+rNgHjOxV4t5zLl3UgvrqTPr2jgkySQeMi/iR49SUc5zjRLKjy R8Gu+0QZmcaOrRftMpZqWDCPqk4MLc2LUFTlZQ0g= Date: Thu, 15 Oct 2020 19:47:06 -0700 From: Andrew Morton To: akpm@linux-foundation.org, david@redhat.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, rppt@linux.ibm.com, torvalds@linux-foundation.org Subject: [patch 093/156] include/linux/mmzone.h: remove unused early_pfn_valid() Message-ID: <20201016024706.GTTxN-Clb%akpm@linux-foundation.org> In-Reply-To: <20201015192732.f448da14e9854c7cb7299956@linux-foundation.org> User-Agent: s-nail v14.8.16 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: From: Mike Rapoport Subject: include/linux/mmzone.h: remove unused early_pfn_valid() The early_pfn_valid() macro is defined but it is never used. Remove it. Link: https://lkml.kernel.org/r/20200923162915.26935-1-rppt@kernel.org Signed-off-by: Mike Rapoport Acked-by: David Hildenbrand Signed-off-by: Andrew Morton --- include/linux/mmzone.h | 5 ----- 1 file changed, 5 deletions(-) --- a/include/linux/mmzone.h~mm-remove-unused-early_pfn_valid +++ a/include/linux/mmzone.h @@ -1420,7 +1420,6 @@ static inline unsigned long next_present #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) @@ -1440,10 +1439,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. _