From patchwork Fri Sep 16 07:22:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12978210 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 03235C54EE9 for ; Fri, 16 Sep 2022 07:23:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8A96B80008; Fri, 16 Sep 2022 03:23:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 82F9180007; Fri, 16 Sep 2022 03:23:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 71F4D80008; Fri, 16 Sep 2022 03:23:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 6235780007 for ; Fri, 16 Sep 2022 03:23:46 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 42679141A94 for ; Fri, 16 Sep 2022 07:23:46 +0000 (UTC) X-FDA: 79917108852.18.A5C0FFE Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf20.hostedemail.com (Postfix) with ESMTP id A0FA81C00C3 for ; Fri, 16 Sep 2022 07:23:45 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MTQSD1RYCzlW09; Fri, 16 Sep 2022 15:19:40 +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.31; Fri, 16 Sep 2022 15:23:40 +0800 From: Miaohe Lin To: , , , CC: , , , Subject: [PATCH v2 10/16] mm, memory_hotplug: remove obsolete generic_free_nodedata() Date: Fri, 16 Sep 2022 15:22:51 +0800 Message-ID: <20220916072257.9639-11-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220916072257.9639-1-linmiaohe@huawei.com> References: <20220916072257.9639-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; spf=pass (imf20.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663313026; a=rsa-sha256; cv=none; b=QEhsH4vl+WmRvqE/TYW9pV55nHSHhzpJ+6HExyyzpzgAp0wJyeUsSX1BJuaw4BPvLenSqE 03RpbFV2wIytD4YVK/Ufi8+2dKNpVrkqUWPe7c8fAqv6EsdOltzzcGLp/xT81B/ppzlvLf AvGl1PegE2SOuUepUTRIwA6maLnnvl8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663313026; 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=IHFoWOX7Km2ZEJnziw0u5f8v+dEK8n3bdbtAKi1mOzQ=; b=tcQ7A8Z/Zf+44j1P7dYm+qygTFvG/DKdp+743hhyjFL//tIqor0PlDuVvMqCfT+cEwkZ6/ hld0tK/HWlcwym0CjwjebRD1txQGWhUNPMRt5IUFDJi9zAzGiyvtrBkHlhSb+NJfF1ITFT Ds2HrJsBmNKRBr93kGV06HD0YhpCLBM= X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: A0FA81C00C3 Authentication-Results: imf20.hostedemail.com; dkim=none; spf=pass (imf20.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Stat-Signature: oj3m5r8a4em8izuj8519yqxkkgd36uoh X-HE-Tag: 1663313025-763833 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: Commit 390511e1476e ("mm, memory_hotplug: drop arch_free_nodedata") drops the last caller of generic_free_nodedata(). Remove it too. Signed-off-by: Miaohe Lin Reviewed-by: David Hildenbrand Reviewed-by: Anshuman Khandual Reviewed-by: Oscar Salvador --- include/linux/memory_hotplug.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h index 51052969dbfe..9fcbf5706595 100644 --- a/include/linux/memory_hotplug.h +++ b/include/linux/memory_hotplug.h @@ -43,11 +43,6 @@ extern void arch_refresh_nodedata(int nid, pg_data_t *pgdat); ({ \ memblock_alloc(sizeof(*pgdat), SMP_CACHE_BYTES); \ }) -/* - * This definition is just for error path in node hotadd. - * For node hotremove, we have to replace this. - */ -#define generic_free_nodedata(pgdat) kfree(pgdat) extern pg_data_t *node_data[]; static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) @@ -63,9 +58,6 @@ static inline pg_data_t *generic_alloc_nodedata(int nid) BUG(); return NULL; } -static inline void generic_free_nodedata(pg_data_t *pgdat) -{ -} static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) { }