From patchwork Fri Sep 9 09:24:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12971375 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5A9AECAAA1 for ; Fri, 9 Sep 2022 09:25:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 996998D0003; Fri, 9 Sep 2022 05:25:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7570B940007; Fri, 9 Sep 2022 05:25:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 55EC494000C; Fri, 9 Sep 2022 05:25:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 267828D000A for ; Fri, 9 Sep 2022 05:25:32 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 02C8AAB345 for ; Fri, 9 Sep 2022 09:25:31 +0000 (UTC) X-FDA: 79892014104.24.3820159 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf09.hostedemail.com (Postfix) with ESMTP id 4E27E140090 for ; Fri, 9 Sep 2022 09:25:31 +0000 (UTC) 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 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 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662715531; a=rsa-sha256; cv=none; b=oFgapB31DyBop1/NP8qltJSDMuV1cU1qQNECx3Z+HgAHDrVhh9USjAGKZEs+ICGxz9sDXv sGg6qyOK1zQG7tegMLJC6eNbuP5twhNthmUK8MDAdzE/d/06AhSIi8N/mJHPqIkaejP5ZE pLUpTDZ8wSTtS1rtLrGPS62TN47fzQQ= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf09.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662715531; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uIta2MZvnLfWPHcQLECdsaoobcqvqhvz8sDiIHqzBuk=; b=TV5ssMdX4yvAuy+N+VhUwu0LeU1W8mBOVYp7cyD+wDNDibwHAzT0HF0+EE2qLUESdPpdRl GidZevvMSajR/N5iZUQZMknMmMQfJ6vNggB1ayfO+NRQVnuG7Qs15SPjrkmYPmyQWqIT3l FIXuk6REYYb9ob504Qp4rLBcPyWlH2I= Authentication-Results: imf09.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf09.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Rspam-User: X-Rspamd-Queue-Id: 4E27E140090 X-Rspamd-Server: rspam09 X-Stat-Signature: d7oi6o1nmpa96xtc9k34qaxwogtp38o6 X-HE-Tag: 1662715531-5674 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: There's no caller. Remove it. Signed-off-by: Miaohe Lin Reviewed-by: David Hildenbrand Reviewed-by: Anshuman Khandual Reviewed-by: Oscar Salvador --- 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);