Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6326631rwn; Tue, 13 Sep 2022 02:30:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR7umoGR9SwA/qhYAf0OuC4ns+pTyjn+eiyDLKmLWzooz4pRxWTmDi9epoczlVaaTVrANldC X-Received: by 2002:a05:6402:1044:b0:44d:925c:41bb with SMTP id e4-20020a056402104400b0044d925c41bbmr25447486edu.245.1663061430442; Tue, 13 Sep 2022 02:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663061430; cv=none; d=google.com; s=arc-20160816; b=ExbeL6qTgTNByqMPw7XVWB+N0pi64Zvow6w1CZY0wdjcuCp86uY7fNrS9EwhpxDwRC j1f7/HatkwDagoR2znAdSVthWdvPSAb4cBCC5App5zKsqXUoGk6Ay83fXPpbdPjjcsNJ zIUBnCHcqtN6anTmDyZx2MelJwqT6XlDevJngy1MTku61+2acXAKwGC48CY5KvUfGShs HDXMCYRqNk/zjXSXvOFjqVd6/JiKYgzq5iKcKKCx/8/2aNbwD6c4yHjGZh7TFQibrmuT NAoaus3UoWfmynfwmnPObLQyQ7ut163fpABX4zVHfiJn9p443UHWObLXAfxfEHQrIuew dkuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=O/XWH2n49wc32ewM7EeA08Y1d1YYnAcd1cokV4nzXG4=; b=TCkWi6nY/8IlYNAuBXAAfPZOIE1eu82E43MGMQRpz9tJXZnjOs3+L1QjxcjxN07tPM 6ze98V+EyHaX+5lJ/qcQ4wXshw/caREsiDS2MKfpPd+o3yZ0pwcKD3Y3BcOH1q46Yg+3 Doq7+wH7J3Y2/U2Nn5CjOR6Vagt+yTjDwlayMSFGGgDVPntP4IiM6OJp/nBc+e4aHquh YvVwPXWomFvkmCRAOJbRKzJhpBrgymLLpUs6pUvHGhD/Ocls+7fVLN/FiE/kwXMjq4Dk cOve38R9LcUbpBATben438mEDEmCf5CCxUuQJ/cj0fsVM743qAhRMm7W9iI2zt7rg3AF 4kgg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr23-20020a1709073f9700b0077f3258db74si2667383ejc.282.2022.09.13.02.30.04; Tue, 13 Sep 2022 02:30:30 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230298AbiIMInb (ORCPT + 99 others); Tue, 13 Sep 2022 04:43:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbiIMIn3 (ORCPT ); Tue, 13 Sep 2022 04:43:29 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ABC011D321 for ; Tue, 13 Sep 2022 01:43:27 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D3E361063; Tue, 13 Sep 2022 01:43:33 -0700 (PDT) Received: from [10.162.42.9] (unknown [10.162.42.9]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 52CCF3F73B; Tue, 13 Sep 2022 01:43:25 -0700 (PDT) Message-ID: <25985544-c2ad-bb0f-ab50-5c21199925d0@arm.com> Date: Tue, 13 Sep 2022 14:13:22 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 07/16] mm: remove obsolete pgdat_is_empty() Content-Language: en-US To: Miaohe Lin , akpm@linux-foundation.org Cc: david@redhat.com, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220909092451.24883-1-linmiaohe@huawei.com> <20220909092451.24883-8-linmiaohe@huawei.com> From: Anshuman Khandual In-Reply-To: <20220909092451.24883-8-linmiaohe@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,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 9/9/22 14:54, Miaohe Lin wrote: > There's no caller. Remove it. > > Signed-off-by: Miaohe Lin Reviewed-by: Anshuman Khandual > --- > include/linux/mmzone.h | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > index 6950179a20a2..ab17a0e6f26f 100644 > --- a/include/linux/mmzone.h > +++ b/include/linux/mmzone.h > @@ -1247,11 +1247,6 @@ static inline unsigned long pgdat_end_pfn(pg_data_t *pgdat) > return pgdat->node_start_pfn + pgdat->node_spanned_pages; > } > > -static inline bool pgdat_is_empty(pg_data_t *pgdat) > -{ > - return !pgdat->node_start_pfn && !pgdat->node_spanned_pages; > -} > - > #include > > void build_all_zonelists(pg_data_t *pgdat);