From patchwork Tue Jul 23 06:41:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13739431 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 ADDF2C3DA63 for ; Tue, 23 Jul 2024 06:43:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4354E6B0096; Tue, 23 Jul 2024 02:43:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3E5336B0098; Tue, 23 Jul 2024 02:43:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2ACA86B0099; Tue, 23 Jul 2024 02:43:10 -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 0AD8B6B0096 for ; Tue, 23 Jul 2024 02:43:10 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B2905140232 for ; Tue, 23 Jul 2024 06:43:09 +0000 (UTC) X-FDA: 82370075298.03.19AAEAE Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf26.hostedemail.com (Postfix) with ESMTP id 6C98A14001C for ; Tue, 23 Jul 2024 06:43:07 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Y6q4di16; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf26.hostedemail.com: domain of rppt@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721716950; a=rsa-sha256; cv=none; b=4yv7zuityGMsXML6eHn1JOebyXIZT0P7PXcLc9Wq4ejPd7uUMon8jGCMeTNMCcZnT0ZycJ vHk+WlSW5jk8ewnlzOSaPoCqGX/iaYpcAIJplcjomX+yU1GkNsP+kTyThw7k3csi6Dd5sC WD+vl//bTjRGsB4pQ0A5tQZ8ODE2cr8= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Y6q4di16; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf26.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=1721716950; 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=8n7+pZzK6+WFbmHoG/C3Mm8rEIVJDKYJbiiG3SHlmv4=; b=N0R22PZ7Ig3SXc9HGIsTxHZN7DtCUFKH/hetkP21GGzkb1wgPK/DC7tN1sVT0YE8rPibIl VWfgm3bSvqOQ+S5ztOZ2Gd2ZFO/ypnER5I2fBskUKFoD7DnDWdCBlDdppN0OC16hWE35S7 W+xX9nGJPRaHAbjaG0alrf38vr5rIvI= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 3CF61CE0D9E; Tue, 23 Jul 2024 06:43:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81FA3C4AF10; Tue, 23 Jul 2024 06:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721716983; bh=JjgIyTKyYMJEXmrY6iBKzQREjmuG7L6VHXSpEqp+u6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y6q4di16/02FGfX+NKF4yx+rIcTYq07N0OxPOONcycTUcZeXWWAg2+tx+rB5WHgfz tsKcNAQI4BwTkHN/3v2QX1cY6ojJ2lI18zljRvYbx7HafeGw5Pxe7uDhrsU/knMhF1 sGv6OFNaO+pEUIsgk7TQXeN+ZdJqc3rlk4PGDqWy5Oc2MdgiN3FrA7AaAf3CiZ2AN1 ZbDg482Hlr+8t8pxvFNK458eAQFx0WMXdPrjGy/8R3glp7z9UTqm15jP9l9A3rl/Cd WTFGFwzRouQDOKzSKcD5VdKfKWOZKZs0wjR3BtKbQp+l1R4vFsdv+mBPtEeJsjeErs mRBwbG4jucomQ== 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 v2 04/25] MIPS: sgi-ip27: drop HAVE_ARCH_NODEDATA_EXTENSION Date: Tue, 23 Jul 2024 09:41:35 +0300 Message-ID: <20240723064156.4009477-5-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240723064156.4009477-1-rppt@kernel.org> References: <20240723064156.4009477-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 6C98A14001C X-Stat-Signature: muaonwjqztpjh1mtfdb7b4tfrke3r4at X-Rspam-User: X-HE-Tag: 1721716987-552902 X-HE-Meta: U2FsdGVkX1/7f5bnPvSljbqAKkyq2m4wtgcyBjNb/eQlQMGb+IdXIBDU0ZdhlXNsULI2jA49bUq3Ju0x/QZ3c+IXxtHEEOYFgE0GgpcmJ//brvdMxDtoEdAjmn/IZxUKMaVCNOZuuTdUuTUdpCHGkDBF33jcKCir1cxM2apfrqzttVsRltAIUgwGyv6Ob7WPFwaFZH15HpW7RH4CQrCNHWBZNqFRq/3Pgh3j2FKtOdsuc2n8J4ij5tZGdCygKuip9Cr+6XyCVUkkwPSTCDdhApBjV/SXMHcnoTb8dy+yYD/1IPOKaiYyjesEpv3Vb1mYNi7CVR3LcBQ5WZ0Rm8pS9+DaTB5/8/zT391IXWn7mN7/1cqHUCEFzh8kFg3t3zk69Dnb1HyPkamJjz/ELD8gvG5Q5IY1M6Jy7uw8A1i6ugfjNxRysp0lk6V/r/jzFfWh8IOXsejEcoriWzhzEzkSCDe4EtWkYNaVlDzor08U81gKOOjxEzU5oPHwbzecXLq7jaCZmVa3rL5K6CudlKWbI8WhIzhn8WQXHckkeHYE/PMQIYb2Rt+5dj1WIe5u+/cDj2SCog0M0g3KGS84W/2A9F5ySejlNio+1rqDyioUrTcBAy4NLA+E2Sx6nC5d+SspV+ou96sWzWQyBGpz5GDj3IFDc0DiB6FvhfL435x9yj7tuDvalFfH7mc7AILMSoIrgNKwN9criChXDs45lciJoqVnEiKkUsyLO1y9z4TmohTwqzCGHOm+MprmcSC1q40iqxqQmZ98e4n6URJ8yyQInEO7qyDZVbF5FOiC/FDrscDGnnUPoN6EHkMtocMMSBxPhrPJ6e2lWXUlq/4BKDFq6YMnucjXKGdakROSlHcpbzuaS+I9wOtFh+ywY6Tcs5Z1I1sq7NfXJ1ZisuCrr5QTewNOvlIpu5Ra9VVESwoK9UeIucxivitOjzzhyVe+DXCJxiNkQw21wDdQQWz91s/ cexga5rP sKiygQpFx50s5zxEfehMvmXujCYzwmsXurR1hyAY28FkiwkT0BFTCwqjyw1Cl2xvUAoSJTqZmcYrIuWrWPKOqAp6jNPMBPEvM9ojLPpgiwCGnkN5YMTBZoKcgQX+D8eN14lK6OwZme7l8SzU69a2hbtXUkixOmEN2OZ2ydE9YFcc4Wwb5GY2GPihU27LBdi4UAD289Y1DptpH6gyL/hRSU546uv4R3bK/rJkMaAIwUP77A04UMfMYXJ3JavJJeNVSJEgSnGRF0UJzgD6euBOPWkxRtENvomh+DD3e+2a/BabYltdQA20Su/Kq3LsxeQcqXlmp 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) --- 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 f1aa1bf11166..954f12a9e669 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -733,7 +733,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; -}