Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1691079rwn; Fri, 9 Sep 2022 02:30:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR66yE2JXUstdVHVNynxCXOnG5a05YQTyfutLvLU3Hrb3ShokWeFHR0OSKQ2wkni7N5ZE7dj X-Received: by 2002:a05:651c:4d4:b0:268:4ef5:16f9 with SMTP id e20-20020a05651c04d400b002684ef516f9mr3429266lji.342.1662715822249; Fri, 09 Sep 2022 02:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662715822; cv=none; d=google.com; s=arc-20160816; b=fAweyt0As84fa2bKxPmBMV0yNrMJC7mPqnRLV/NNn7O+OJHt6Wn5gB8waiUzOpQ7XD kTRtL0d142oeEUlqq/cE3xaW9TnWXe5Pg9YWzfXGVImoOkmnuGuf5HwJC+dZ/ltgu6rK wen/SX1XlcQHSgChm1qy9WA1+vCozmMJLFmglCIGU3e403h28XJTjtx3lVEGRHlghWfi WrS+46qH4r3ty0c0BgZOvnD+Psdte3WoDE6NVaXkChFaIwWLtp28RlQlxlaXLufHpns/ YizDgYt+2lMYOEeMJG3D+cRUcAnA5qnvi4zfd+yJURzDz4yVadOzyk2qVLD1RuJvFgS5 5HSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=uIta2MZvnLfWPHcQLECdsaoobcqvqhvz8sDiIHqzBuk=; b=bqh30QPl1DgA3W+kAiQ6kn+SrrPbTGajl+opWStZB7f9mvnrTAZZEurFPQzynlIXOQ TaQhodnX/M4BBcqM24mwUEqWtlEhWCJe+mwkY+LlZc/xLdRhr8eGhMkhUoeT8GSQkxLw wsY5EndoXcatfmB931ltYduXSDyksK3kkgmlaiysyxEMmPQhzPffz+xBYHBH2+8hqq1W 7d4lg+yBfv6NjydrXXjE5a1cq5nF3IiNO/PkfIzBT+p9TZph6w5NLToRoLFl4c0aKh+V hzka5k67/DJPLVyEPkrCCrWS9SHj0Yw40zexD/0sQPq4bRtiBENczwMbbj2ijdBb8O5Z XW4w== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a2e9010000000b00261c3b40488si7226ljg.443.2022.09.09.02.29.53; Fri, 09 Sep 2022 02:30:22 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232008AbiIIJ1k (ORCPT + 99 others); Fri, 9 Sep 2022 05:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231204AbiIIJ04 (ORCPT ); Fri, 9 Sep 2022 05:26:56 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FF27BAD97 for ; Fri, 9 Sep 2022 02:25:31 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MP9V93JMVzlVqK; Fri, 9 Sep 2022 17:21:37 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 9 Sep 2022 17:25:28 +0800 From: Miaohe Lin To: CC: , , , , Subject: [PATCH 07/16] mm: remove obsolete pgdat_is_empty() Date: Fri, 9 Sep 2022 17:24:42 +0800 Message-ID: <20220909092451.24883-8-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220909092451.24883-1-linmiaohe@huawei.com> References: <20220909092451.24883-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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 There's no caller. Remove it. Signed-off-by: Miaohe Lin --- 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); -- 2.23.0