Message ID | 20220411094824.4176877-23-ardb@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 A58A9C433EF for <linux-arm-kernel@archiver.kernel.org>; Mon, 11 Apr 2022 10:11:43 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JHqNeB3k4CtEckBZJePOHrUSmqC/uk31Qm7BcMSStTk=; b=w4AGirlwYhHaIE 0d/4CmFHaEgFZPBJhEmiM4hC5Ur3sb3iRkL/fuqfuX3reHxwst+ZvrMuV44MPZkma8hI63jqKn614 AThbkpL0SVRfLPNKgn2MZeqQCxLKc3wRq1kthougpaCBtghV/2Rai6UnLc3nuRBm0bdGmPV1kIy3F uInb9DE5pkwLxluNLitlMy24pDs9wDKzYaXEe5uKoUcqnnCHysZh/T+UL0JNttmaejoV5CvmxuhaV O+QV/A2KXyX2VNdNRxuzlZGW//dpKAQTTz/NeC+hrcRKvVInCG8hj5kdPlGwnhOSRyu4lxKyMz5/3 pV6B8NyXdWR52tv8k/Ow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndqzz-008CMW-WC; Mon, 11 Apr 2022 10:10:20 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndqfz-0082ac-2A for linux-arm-kernel@lists.infradead.org; Mon, 11 Apr 2022 09:49:42 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 1E336CE16CA; Mon, 11 Apr 2022 09:49:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D2A5C385A5; Mon, 11 Apr 2022 09:49:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649670575; bh=C3gzrQFKHEBqXaiW/FwDmIgNpF8Lr01RJwVGYMDades=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rib0l+9AlaQL6qeKlSC3vVu0fDnVyLu72JMQJvGHv9gkZ2ZTq2E+WTn9N4JmaYgG6 eSVvqS2YcaTQIs3FARMIMdqisYWbMiImYwgehP4ro+Y15OMQlZCwug2lImzvJRC2y4 0NiHiWChqwOVVBxMu+M47L6medsNbqgI1c2cAuJgxp016wnSR9gObPkNbpwoPFefAD SOdGlyLK/41Aj+eBENeHRWQA2VDdfvaS2hkCH2L2B2+yBgQV0HE2Gu+MsQoD2l3XDY 21Vja8g4mLuvCw2BX7AVYBEbymJ90tyX9MkeOLCX6X9gvfiPW9Eur/j8YYc1G13v3Z XbfTnd/Rf4CjQ== From: Ard Biesheuvel <ardb@kernel.org> To: linux-arm-kernel@lists.infradead.org Cc: linux-efi@vger.kernel.org, Ard Biesheuvel <ardb@kernel.org>, Marc Zyngier <maz@kernel.org>, Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Kees Cook <keescook@chromium.org>, Catalin Marinas <catalin.marinas@arm.com>, Mark Brown <broonie@kernel.org> Subject: [PATCH v3 22/30] arm64: setup: drop early FDT pointer helpers Date: Mon, 11 Apr 2022 11:48:16 +0200 Message-Id: <20220411094824.4176877-23-ardb@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220411094824.4176877-1-ardb@kernel.org> References: <20220411094824.4176877-1-ardb@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1406; h=from:subject; bh=C3gzrQFKHEBqXaiW/FwDmIgNpF8Lr01RJwVGYMDades=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBiU/lZ/JZBZHxahP+H14buByBaeMzElzK5xRHx+6vG TspgKXiJAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCYlP5WQAKCRDDTyI5ktmPJI5NDA CpB1e4GUGYANOsleQ/LwIz8k3N/zQ3F8dJFj/c5zmCRkFsjmsfUwIY8F+ri9KKtYeOsZsaGzvV4uSn bbHoDOM92MMggMgJg20aqogqBkz/+N+FhGc8pnEdeoW9tYq1nRt5rtLq8hYKD92UQMdL1EoMcMcE6W gce/eefASl6j6AtnUqjDLkP6meF4Aq8Rwm6WO7cXhwS8MNtaxqzZYC+rTzS8E3Erk8BcqOMcbY1Bt3 1hKFjtJRH9Tk0tkEEAvONsF9r2JwYcniXIiNBm14oNtc776bEnzc1jWyyl3rXBzyIPs1FxWVS5C+TB ybqcqzT5bfgJvkaprtmU8pYDAwtAFh64rTOvp0D/yyvcWxu3UQgyuD2orCyrSUzk7eiTVUU9gXOphG tAhpm6VOT+QkyIqG+llBgSG8U96t0guR8wjcSDYUyBc4KsWUKALy72BtGc5ibySjyVn3Zhj2ea/x3e zSYRs34zE85YLlquvdtJbHhopsUZy9buOo38kUn+sSgtg= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220411_024939_381861_804756D2 X-CRM114-Status: GOOD ( 12.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
arm64: support WXN and entry with MMU enabled
|
expand
|
diff --git a/arch/arm64/include/asm/setup.h b/arch/arm64/include/asm/setup.h index 6437df661700..5f147a418281 100644 --- a/arch/arm64/include/asm/setup.h +++ b/arch/arm64/include/asm/setup.h @@ -5,9 +5,6 @@ #include <uapi/asm/setup.h> -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 de546c8d543b..2ca8d4a509e5 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -163,21 +163,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;
We no longer need to call into the kernel to map the FDT before calling into the kernel so let's drop the helpers we added for this. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> --- arch/arm64/include/asm/setup.h | 3 --- arch/arm64/kernel/setup.c | 15 --------------- 2 files changed, 18 deletions(-)