From patchwork Thu Aug 1 06:08:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13749633 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 8B8F4C3DA4A for ; Thu, 1 Aug 2024 06:09:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2DBA46B0093; Thu, 1 Aug 2024 02:09:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2B1F86B0095; Thu, 1 Aug 2024 02:09:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 17A5D6B0096; Thu, 1 Aug 2024 02:09:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id ECA176B0093 for ; Thu, 1 Aug 2024 02:09:39 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id B2E0AA086E for ; Thu, 1 Aug 2024 06:09:39 +0000 (UTC) X-FDA: 82402650078.14.175E237 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf18.hostedemail.com (Postfix) with ESMTP id 85E4E1C002D for ; Thu, 1 Aug 2024 06:09:37 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Cr1CiLPN; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf18.hostedemail.com: domain of rppt@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722492515; 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=HoCKeIzmAcywFsgpFMMqCqoLsKNItI9k7YH0FvDgTJg=; b=7Mh3P2F3juMuWskV1V9RAlB/No0X/y5Rmj/6PPwAQRChoIBaNWXgLhiB1WbGwoSHUzjkxU XykqT/HGeD4NiTDVjm1PmcxSdgxFQqQ4Lg2K/Mx1CFmT9Rv64/l4Lb3vhtYT2rxzPpwGRh EIQXcwJw7yPIkmaCeTKLCIlyMWcA+HM= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722492515; a=rsa-sha256; cv=none; b=IDpSE7wdYKkxEmFeGEGZkQP5W247XYhq8DouERHtXN9VaYqMm6E2w+DcXN4OAbpPbnpOpD kicKbt2V+NjzCJt+OF7D0+1Lqu+RdW6RzD4/iQBdkO3eNdoJqBbRGIBNd191K7DaL8q51o jTYSjiqKO65cKLPPGjZzGjthUTyFuTs= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Cr1CiLPN; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf18.hostedemail.com: domain of rppt@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=rppt@kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id E566ACE1872; Thu, 1 Aug 2024 06:09:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0025DC4AF09; Thu, 1 Aug 2024 06:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722492574; bh=mmhHQYCETRJBHfScnhlLv4Zo+WisPGGfSJnH6vP+xjc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cr1CiLPN8Njdras4Btqnv341rMINjlqlnS1idBt/fsGeA4aaKp/Ea7yaeCTLRW+OD SLPSIWQWQGJwKbXyYy0pIWVIzgViSpnkqTQGdGOGlErfpLRWbytg7pgdYGk+qx62Zh vYO75yHA7yY/Uy0nBoxrtxxpTUVILgIgN/WYcr56R6lmrJ6AHRlpmtU1yA6AtLKxrM ZMeWtHyXc0v0Y5TlxT1McUabePfZDEmVQfqH5OPEDQwG1SfJboJ8M8tXb85NcwNlTk yRFhOlgDBqiScu3LsYNIWwFXmfZDKp8obRgWw9/g6qXMgFBNCRXgedXGkmX7WEaQAO 2ahFkgooeohiw== 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 04/26] MIPS: sgi-ip27: drop HAVE_ARCH_NODEDATA_EXTENSION Date: Thu, 1 Aug 2024 09:08:04 +0300 Message-ID: <20240801060826.559858-5-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-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 85E4E1C002D X-Stat-Signature: zm3ruqoohw6x8wbr5dnjtaaquuhjrp3g X-Rspam-User: X-HE-Tag: 1722492577-339730 X-HE-Meta: U2FsdGVkX18MJeZ4+g9G65LZd3dyjdjee9vK8hyfDTA9JBLRBQ5iy6GO+QkK0Au0pgGdzFfL/pHXZ7e12TJgIVVBgS4o/sDyrisBjUHAEYxblCu/y2NZO3/ed0WrMAAWiozxH1enK9/Dkx9v2tpY81dZLYPQ1HkPGH9asNv4xI2qEGyf6LU2kMDruGrb/NxioIaVxPKeGdxT2mtttG9I7BWzHaCb9i8NBh+ezuJJ/tobf3w7d+0qfJgQW6j8lLpRiCGFIdJCXo+9pNsIIQzbnhRaqrrYVSx9lCV8u8lRWbVoYSKLueujmojWHEod7aiK0tc7VxYSYKkCDz9WpkfMnqE762FcamIRXBIipWZjaUFo0NxdnsYKDmLI5sUzi9RYtmkleD/ApwV9gH0k375SjgBfDK+kIt0KEunA3w5vFlJlp1JPkWdJZnBRiC/3bkgB74vq3GgzzaULsyIa3HIctc21Ae/gYM3LWxAjjvJo5tpMbbHMOenjENLo450w7tWie0cSJcOy3bal+j8588qUKM0V8/RDgUDe7GuaO8ThB6pWnfQdtf2M+UDBezFClQDpBdXjoj5XpdvaAt3QAX+CyERZurpLJ5kJvObjG6VSb3v15MkG2GxnNL+Tz/GW1i4oyvooaggFOSc03vnQrXybjylTvR4dNpdFk9fSmSenf55rLSOlAreXi1ApnAOg6FaH+KiaP1N4HGVBQAut7aq3Ua4IW7PyD0h6sMvV4qArKnujtFY4MQQonVaYmo/Ok3k165dwUzQ1oWa/DnHdlJGT0PZXYkC2Ol4VSVOYr6nHFqj3vlxxZmZx83IKrEGQ4sAh9WNyLrkb3mvI636UL6ehrcGQYGBZ+X8deFQ6k7TKJ5ix3YbUaaqV05yuxjsdwH+AF5GCqxuu8oq/FjiUEhuGafBqG4/qXiYA+m/wTMBHRq0PYMGNyk1AzIIUb1ONNRDXt2qmTX9dBaGUrSK0+5M 6DpZ2KeI oov8UgAKswYpMTAYfN4KxYP4Z2L/0a9UqC2gNnu0LZFoq2B5OEUcjldd4MtRI6m7oysN6ZqH0wkzRXC15nVBXGk1Ubx5B/a6vYIClcqQFjzfSPhCo3kx/iRr0KPHMCmRsy8ilS1gVegAd2sjpBA/IvvyU2k/McT0l4nLLngZuok51HqmpS8dnXX+T1RPRE9uMixeB8HQE94iurKgVVsD3rCmb5RbV2pXJbArXUg+FqetSSCh8MLNLJhpuE0QzEvdswJ7Ea7kKNWngkxTxmTlIGWAO8Rf/CnZT5m04cFjfzEhTG2TEvAornvpVfOMOHvZ9mc3N 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 sgi-ip27 to silence a compilation error that happened because sgi-ip27 didn't define array of pg_data_t as node_data like most other architectures did. After addition of node_data array that matches other architectures and after ensuring that offline nodes do not appear on node_possible_map, it is safe to drop arch_alloc_nodedata() and HAVE_ARCH_NODEDATA_EXTENSION from sgi-ip27. Signed-off-by: Mike Rapoport (Microsoft) Reviewed-by: Jonathan Cameron Acked-by: David Hildenbrand --- arch/mips/Kconfig | 1 - arch/mips/sgi-ip27/ip27-memory.c | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 60077e576935..ea5f3c3c31f6 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -735,7 +735,6 @@ config SGI_IP27 select WAR_R10000_LLSC select MIPS_L1_CACHE_SHIFT_7 select NUMA - select HAVE_ARCH_NODEDATA_EXTENSION help This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics workstations. To compile a Linux kernel that runs on these, say Y diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-memory.c index c30ef6958b97..eb6d2fa41a8a 100644 --- a/arch/mips/sgi-ip27/ip27-memory.c +++ b/arch/mips/sgi-ip27/ip27-memory.c @@ -426,13 +426,3 @@ void __init mem_init(void) memblock_free_all(); setup_zero_pages(); /* This comes from node 0 */ } - -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] = (struct node_data *)pgdat; -}