From patchwork Thu Aug 1 06:08:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13749635 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 87245C3DA64 for ; Thu, 1 Aug 2024 06:10:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 091CE6B009B; Thu, 1 Aug 2024 02:10:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F35766B009C; Thu, 1 Aug 2024 02:10:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DD6906B009D; Thu, 1 Aug 2024 02:10:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id BD7AE6B009B for ; Thu, 1 Aug 2024 02:10:00 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 405F440919 for ; Thu, 1 Aug 2024 06:10:00 +0000 (UTC) X-FDA: 82402650960.12.CC0D13C Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf25.hostedemail.com (Postfix) with ESMTP id 8F0A7A001A for ; Thu, 1 Aug 2024 06:09:58 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=jS8CwM2H; spf=pass (imf25.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722492593; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=9DrM5DUuGVujAWRmjGY06jnv+dUjbKD+GE6efAhbQHA=; b=sNvsdbej6THUrqcEwN0RGkbXm9ZEicawzGenBfkpaDUHaRB6ikfqV4yHHHXRc1cPEx14Fs 5DhuD/4Pqlbg5Sn2yTb0h2PW/L/3lpZ6lV8jarhTXCNOBXaZhf+fSj62tXEIOF3YLLn2cW jj6lj7G7+ThRROQxuD+NHfeL8jrwLwg= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=jS8CwM2H; spf=pass (imf25.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722492593; a=rsa-sha256; cv=none; b=RlU8eCeRMf52DtE6KtoRnQ/Jqr3wA4TtWR4RsSfCMmXxQfqo3GPndBAV23O8lV7rOYfXZc B0HxG03OEnyAsgkCQ1BPDuVX9hwfuuwze1L8C4dtgGEClsr8Sdt//iA8/ph/aycTaCaHxm E6gzT7AnuzqkvIhg1KItEDla7FwVgBk= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id A149B61B43; Thu, 1 Aug 2024 06:09:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55FA4C4AF0D; Thu, 1 Aug 2024 06:09:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722492597; bh=r+zUcEDoxtqvT8BU/VmlycxtHktOTZUPU96MGvM/m8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jS8CwM2HVacHd88SFDPtwS0+oYW3iYC3FGtk8UqItF2w5da1ERg0blF0k9sJIq5gO j+49LhbnKA5MHqV4Fgt2ytbHPvmsT/0zZqHsz/HcWK7tqRzK7FnDQWR65QvIGxzpV6 IgOZkkRBg6DhUMfwbNJ/Kpf+yEo/Uq9WJtCbSDiQBMnlyq0A8Zzjp1qrR3NlDQfr++ AKmQzG7nVd2IbIbt/+lnbQ9V4sB35D21NuC4UdRz8suodH6nNMsYTL+jbG3gGXHsfj 1TulkgepHvXzaSOM7uuBbCwqnItrZwuJ2WR603WAEBN9R5dOB6tCA2yzZTE3wfWcrf jOWVtDodBbVmw== From: Mike Rapoport To: linux-kernel@vger.kernel.org Cc: Alexander Gordeev , Andreas Larsson , Andrew Morton , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Christophe Leroy , Dan Williams , Dave Hansen , David Hildenbrand , "David S. Miller" , Davidlohr Bueso , Greg Kroah-Hartman , Heiko Carstens , Huacai Chen , Ingo Molnar , Jiaxun Yang , John Paul Adrian Glaubitz , Jonathan Cameron , Jonathan Corbet , Michael Ellerman , Mike Rapoport , Palmer Dabbelt , "Rafael J. Wysocki" , Rob Herring , Samuel Holland , Thomas Bogendoerfer , Thomas Gleixner , Vasily Gorbik , Will Deacon , Zi Yan , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-cxl@vger.kernel.org, linux-doc@vger.kernel.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, nvdimm@lists.linux.dev, sparclinux@vger.kernel.org, x86@kernel.org Subject: [PATCH v3 06/26] MIPS: loongson64: drop HAVE_ARCH_NODEDATA_EXTENSION Date: Thu, 1 Aug 2024 09:08:06 +0300 Message-ID: <20240801060826.559858-7-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240801060826.559858-1-rppt@kernel.org> References: <20240801060826.559858-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: zqkcprfgmwssp1hxsz9w1w3kw3bpiy1q X-Rspamd-Queue-Id: 8F0A7A001A X-Rspamd-Server: rspam11 X-HE-Tag: 1722492598-286119 X-HE-Meta: U2FsdGVkX19WWU8c1vqvm5RpjfOEIOuRsrI25V+ic81brYGezaKQLp6uwiA9xN44/nINmYGDsvSItiHFdPh6UogsxL+joHGUMphtfnMwU0JBzX7j0HcbkJF3NzdT2rW+bUZsjH1SXaLYHh+qqEzI63Ka0Krrev7tkEPN+ac+fI+V4UFubUSz0k9NBtdKZIBq4Cb1FjcBriq0Tr9uJzvE9+6UdRpzPTqCFY9kN7lvtHZhh9/ukCQfDO71z1Jdrj/7wEU8ojEv0GIIsAqxdTGlRN2HjuT33qBrzpkwmCT1/R1eZfQ+PJVNWkA77Gd8Ckvxlcob9KPk/hB7hlmBh5m6G1ZS2KBEzAazPEU+E5qTv5+zInV4JQeL8hGcPXDhobhiXPaGVobPi3k7YieBcoaaohmJaZe82w7aYqFPoZUQl/Lyuu2222izyJYcjoWTpTiMZwEWAxThW2u/Px22mvpkhOB42ZhLa1cjmGCjX+WbTl/w1/S5ym5ZE66lwxHxT6zyO1uh13+iehflVQi+9FKrQwUoOfKiRTah9NNOFB9OTitD+uoteHq2k7/NKsot3N86QgDOerqlt/WMnDwNmjeWWN/AfaAWh9CAQI9FOJ/fz8zOF0ML0HvVPiP7nKM+RkKfyKvnD6Wrgow3oIaTPYi4T7nPfLpV0MzVGwdZaYBBG+0nobjc+WHnkrwlmGdgdHTofdKk7joYmlhM4XfKfWLek8r8p3n6KQp5q+BRX+r3g+zoZeqL1kwBu2dpx5SMkYSj6pS/5uhZYgw/FX3gQYIfkIBzzugLpD3A30QGo/UYw0mvQly3rURdGxeInNlGeLbuBzON1hOHZkz9FNEfBdZHcRlwoblo5koRvroHJza/rmW+1HPPuVBcd1I8AnEZBsHDaG0w6s0urtDRzTHurxq0ca/Jalc5YvWai4dStNauSQLJDBJtRxnsxdpzADYHCeTC4OsfLSBeUhkq5pZj2nh mv8ZxxKD DlHFiiOWwG/vPNheEqHUJwL/go8cuqkAwuYLADvzOcBgV5UCYs2iX4mB4AD2WmLq7ZDm0i0QCozVbU7aSnTiM5BIuAl2uoVt3sGNi1VQPMcsGt/WplEt4uHJ7uEYzDEqtFbFEoULfaIojrj/8U0HPZwzdnIiFJWLHDLRMTIleoUbz1z1bG2GaI0ZZ/KH73YAMpkvLwZU436YH3bx7Kt3A3SDkYdVi4fJLTIkmtrokM5B0/WJKfd2+kyyo/PtTrS9GuzSciKNfXRt0nc0j2V+ICB50GT8w+GS00ceoYVTJCicWL7PEgkEXVZyVzE0SBTWTknvz3qhwR1fvRMM= 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: List-Subscribe: List-Unsubscribe: From: "Mike Rapoport (Microsoft)" Commit f8f9f21c7848 ("MIPS: Fix build error for loongson64 and sgi-ip27") added HAVE_ARCH_NODEDATA_EXTENSION to loongson64 to silence a compilation error that happened because loongson64 didn't define array of pg_data_t as node_data like most other architectures did. After rename of __node_data to node_data arch_alloc_nodedata() and HAVE_ARCH_NODEDATA_EXTENSION can be dropped from loongson64. Since it was the only user of HAVE_ARCH_NODEDATA_EXTENSION config option also remove this option from arch/mips/Kconfig. Signed-off-by: Mike Rapoport (Microsoft) Reviewed-by: Jonathan Cameron Acked-by: David Hildenbrand --- arch/mips/Kconfig | 4 ---- arch/mips/loongson64/numa.c | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index ea5f3c3c31f6..43da6d596e2b 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -502,7 +502,6 @@ config MACH_LOONGSON64 select USE_OF select BUILTIN_DTB select PCI_HOST_GENERIC - select HAVE_ARCH_NODEDATA_EXTENSION if NUMA help This enables the support of Loongson-2/3 family of machines. @@ -2612,9 +2611,6 @@ config NUMA config SYS_SUPPORTS_NUMA bool -config HAVE_ARCH_NODEDATA_EXTENSION - bool - config RELOCATABLE bool "Relocatable kernel" depends on SYS_SUPPORTS_RELOCATABLE diff --git a/arch/mips/loongson64/numa.c b/arch/mips/loongson64/numa.c index b50ce28d2741..64fcfaa885b6 100644 --- a/arch/mips/loongson64/numa.c +++ b/arch/mips/loongson64/numa.c @@ -198,13 +198,3 @@ void __init prom_init_numa_memory(void) pr_info("CP0_PageGrain: CP0 5.1 (0x%x)\n", read_c0_pagegrain()); prom_meminit(); } - -pg_data_t * __init arch_alloc_nodedata(int nid) -{ - return memblock_alloc(sizeof(pg_data_t), SMP_CACHE_BYTES); -} - -void arch_refresh_nodedata(int nid, pg_data_t *pgdat) -{ - node_data[nid] = pgdat; -}