From patchwork Tue Jan 23 14:53:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 13527720 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 404A7C47258 for ; Tue, 23 Jan 2024 16:01:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=4L4ZRiJBQBCp30TIMpIrqZAHyE5Bm97Lk1GYZeQFLo0=; b=FzrfUqhL3mxJ7OBuSsrebp5Nf+ sEyYUJM0yAxvd2X5b4pp+pgIPOFYEGyqNbsjjtoVTFzqfg6IpGfm9PxXmMNqA43+BSWlPhBkx7ESg k99LasIvY/GuxZdaGm4OK/jId3yxRXIyZy8MFluYlnCX0QyNVE4+a/DLtgHgTis9U0o2qbxTqkelu qx2ZwOOvveAUYfAAeTrG1RajjxzWYCLZSglaoAvteoZa3amorvoJ6HX9Axa9qjtnRO2/TDKKx6hAb 5Py85ClgJSQtb8+2uIyfiPZ5ZoWvkTnOld6ac2n0WHy6RCkeWQHfkR6Zk0scBzgny+TMemW+7Imze VxdsAkCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSJCQ-00HAr0-2G; Tue, 23 Jan 2024 16:00:30 +0000 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSIAt-00GtkN-1S for linux-arm-kernel@lists.infradead.org; Tue, 23 Jan 2024 14:54:53 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-dc26605c3aaso5338952276.0 for ; Tue, 23 Jan 2024 06:54:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706021690; x=1706626490; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=ZizGP2MgvhoQ6GFFWc8x2nUKPwFTo5h0Cxlo9Nyx284=; b=wR0EI2FwMOi1jXeXvG5TY5mBOuKjMZXQpCNLuc5N9Y/o6sWRhIgS7n9gS+pgZOP+98 sFh8GIuFWSPSfV4mH2RAiCKntede4aFF2iTWUx6wRxbLekZZUnMTLx1x/fKyXyaj98Q9 WE3hCBWBNuva//AKOOeQHo5x/G2tI7IfPmZvxKTfRWMdyXSoa1gmjxmjcCjRKk0M6a/a MgmIAdXkJmyxjsQV0GIedh1hxLUH+RXvj440fPpdaqBamibqA0dSOKtVz9rrRhkWUuXk 6v0oXvrlffmAKog1lfU1ZHMIletTWSdb9y0tz0Xmf1oLnW82DXLJQbef90YXc7fkwOaa L1sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706021690; x=1706626490; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZizGP2MgvhoQ6GFFWc8x2nUKPwFTo5h0Cxlo9Nyx284=; b=VRC9ro7MyJm1m0OSqLcrHugKnDdd8NgBKFBzyIGlWDMIaV6Dxvh72Ecszbd7XDub9d kDLk0jo+KQceWgYOPRCH8QwfShEQmmuz1B3ngZ3PvlYGms4l7DoT6cPWWegNTiTo3/vD zOPLLUH745Svq30vbOqNQq9mtzPPe/Qnui1mk5pY6Cbxicaj5erZlrExr/Rwpj2b6bvx v8EF4asig7jwEXaTW9j49FoiIVSc6KUx4hk1K0VlWOW+wv3jU7lfwxhmvdP++T68s+r4 pxllhOOOvZT8/uTu2+dEk4gre5FjU1dYWS21wGaRGIKSZ2MiZqMR6GILFawnRPNegEKH A9Vg== X-Gm-Message-State: AOJu0Yy8MqwwJp4jAK66qvR0/Q8fhoBMoQZeCn5JR+oCsXszxRtoARk6 WrMRCY+yy+/N9SGc/hCjy+ss2Z9B7TyV9LaFIARObVcEVefhJMaRDLtlCFP7j6gpnGSslV+uRQp LCtu7H7Z1Tu1DWM6lap/Hw4fRrbsRLmY9DvnGiAiBPVqawBYsrXCYhjanB8oait7v3uZ9uKXrOA a/tlA9WJIDo202nM5AppcAnEcCT9Lo5C+EWjmtpSwN X-Google-Smtp-Source: AGHT+IE0uvuaUsVQxjUQDtmgptLh7UNuQNkD7eLEQPC9XQQylgN6XFDDugX+J/uW9rI+t1jWex4Lq1jT X-Received: from palermo.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:118a]) (user=ardb job=sendgmr) by 2002:a05:6902:1a47:b0:dc2:65f1:57e0 with SMTP id cy7-20020a0569021a4700b00dc265f157e0mr417534ybb.8.1706021689392; Tue, 23 Jan 2024 06:54:49 -0800 (PST) Date: Tue, 23 Jan 2024 15:53:11 +0100 In-Reply-To: <20240123145258.1462979-52-ardb+git@google.com> Mime-Version: 1.0 References: <20240123145258.1462979-52-ardb+git@google.com> X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-Developer-Signature: v=1; a=openpgp-sha256; l=1354; i=ardb@kernel.org; h=from:subject; bh=Uq8t5laFy5sAfHDuHsWo+xKThP4usVNXxMFxvR3LmsA=; b=owGbwMvMwCFmkMcZplerG8N4Wi2JIXX9pRsXe79kexh+/COZq91jtU6uYVe7bqLujPmuOhvPe 7AUcMp3lLIwiHEwyIopsgjM/vtu5+mJUrXOs2Rh5rAygQxh4OIUgInsrGD4yVjBf6n+oTm3wOZ/ v3aY2pfsSGhRcWCwVSqdo+a21vPqPYa/MtIehg4P1wreD1UIP/zh0Z3W0B61e9v9e1iX/KmN/ba TCwA= X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Message-ID: <20240123145258.1462979-64-ardb+git@google.com> Subject: [PATCH v7 12/50] arm64: kernel: Remove early fdt remap code From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Cc: Ard Biesheuvel , Catalin Marinas , Will Deacon , Marc Zyngier , Mark Rutland , Ryan Roberts , Anshuman Khandual , Kees Cook X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240123_065451_559162_68FEB445 X-CRM114-Status: GOOD ( 10.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Ard Biesheuvel The early FDT remap code is no longer used so let's drop it. Signed-off-by: Ard Biesheuvel --- arch/arm64/include/asm/setup.h | 3 --- arch/arm64/kernel/setup.c | 15 --------------- 2 files changed, 18 deletions(-) diff --git a/arch/arm64/include/asm/setup.h b/arch/arm64/include/asm/setup.h index 2e4d7da74fb8..ba269a7a3201 100644 --- a/arch/arm64/include/asm/setup.h +++ b/arch/arm64/include/asm/setup.h @@ -7,9 +7,6 @@ #include -void *get_early_fdt_ptr(void); -void early_fdt_map(u64 dt_phys); - /* * These two variables are used in the head.S file. */ diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 42c690bb2d60..97d2143669cf 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -166,21 +166,6 @@ static void __init smp_build_mpidr_hash(void) pr_warn("Large number of MPIDR hash buckets detected\n"); } -static void *early_fdt_ptr __initdata; - -void __init *get_early_fdt_ptr(void) -{ - return early_fdt_ptr; -} - -asmlinkage void __init early_fdt_map(u64 dt_phys) -{ - int fdt_size; - - early_fixmap_init(); - early_fdt_ptr = fixmap_remap_fdt(dt_phys, &fdt_size, PAGE_KERNEL); -} - static void __init setup_machine_fdt(phys_addr_t dt_phys) { int size;