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=-14.3 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,USER_AGENT_GIT 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 66DEBC2D0A8 for ; Wed, 23 Sep 2020 16:29:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 12BFB20719 for ; Wed, 23 Sep 2020 16:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600878566; bh=wEdP9FXhax0ON6y8WUr3LDvYc1+6aZORh0IBDJ7jXV8=; h=From:To:Cc:Subject:Date:List-ID:From; b=JLgOdK0d2DtFq0C9cPpU+3FZ7F09tYmRXNZ0YzEviZaBO2oRnF4lk0EoxTZTYibvx pOZTli5IV00hrNmnHBdfda8he12tID3zwGGBNxqUjvMaBww3Uj51yg3rEyhHmrv+pI Mv55Yywa9kc6kSeOCTmQ/6aZBuLuJMiqOLJ30d7g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726680AbgIWQ3Z (ORCPT ); Wed, 23 Sep 2020 12:29:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:49336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgIWQ3Y (ORCPT ); Wed, 23 Sep 2020 12:29:24 -0400 Received: from aquarius.haifa.ibm.com (nesher1.haifa.il.ibm.com [195.110.40.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E7E5120708; Wed, 23 Sep 2020 16:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600878564; bh=wEdP9FXhax0ON6y8WUr3LDvYc1+6aZORh0IBDJ7jXV8=; h=From:To:Cc:Subject:Date:From; b=czt6RXCiHuJAavrW0jJRvhgIYC1+qZFt2p3A0UKg/zpTbyyTAvNbG4kNR+Gfvc653 DxzGm5XjoVgw+fn2dnDdcyHfGYrlMbTuSMzUHuFh6AvCXV8JHtyqU6+jfzCtjn3j1S QwVtFJKBzJoTI4joOQCQHULY7WRboBWKiCPymA+w= From: Mike Rapoport To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport , Mike Rapoport Subject: [PATCH] mm: remove unused early_pfn_valid() Date: Wed, 23 Sep 2020 19:29:15 +0300 Message-Id: <20200923162915.26935-1-rppt@kernel.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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