Message ID | 20221111171201.2088501-19-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 57896C4332F for <linux-arm-kernel@archiver.kernel.org>; Fri, 11 Nov 2022 17:25:46 +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=gup/5xhMfZOd82IdjbWu3ck8OTwVG0rpzNNb9IisH0A=; b=0waLQqgEu3F7jD aCUWlptyLng8wHMYWVvICFpg1rgpfLc0PnOwZNn1lgJ9KWlkrNHxuYOMMeAMeXM19NSgjdu8ak6HQ IyDQNozbx8aPuvjdewZOvoDEj5VxAFL06via9oRKXBxYoQC5MZQGywftUrb9qBKdvG6LJTidYg746 uNDD9iD+1Pbz6RdVN11nzlb1XSwkXvDi9nok/l3CjokbJNRvfY3+rBbKG4p7I3v4AUAP9R+UCERNp dQBbjxJP5NGXDq2FtrK9kNGEWeW+XzU+N6ED6a6bRQ2tU9bw6RM76QyK9XC3U2px6al55cHg97x74 9XK79ayAwoA6YHSdgDrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otXlf-00HE5k-Ev; Fri, 11 Nov 2022 17:24:40 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1otXaO-00H7qu-SE for linux-arm-kernel@lists.infradead.org; Fri, 11 Nov 2022 17:13:03 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 66A316206C; Fri, 11 Nov 2022 17:13:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC875C433C1; Fri, 11 Nov 2022 17:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668186779; bh=OKEi9S6PU3zfBkd/5gRT4Fws/KLATAvA+n3Ale7bVWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XUUXGIsrY7FqL225vyB0D6D0xVeaQVLoLAuvhIyMaLQh49xgzAVaFNhYjlPjpk5oq rLsVQxI45S1T0fG5uDvMP50pGk1bZBe6dG21/Y84vIci8C+03WFr+Yk/rY4DuOxjSv t870kVi/m38DthA+RDE7yCC+rQcI4lJuHlpVBG+/WDPdD6fCkzqlbI4eIvkzAMpi6o QABJCZU6xB/h2d0U3Oq+W1ZeVIp88OAZ+S4kZumWeZEqQSKWmdxz1gBWfFr+6y/7RV eXkYANoDMQKNKbDaxrOKF4WAhzE0X73awofHor7WobaK1DO59XCEOTbA8lIiOQXi6x hD0bCeF0kI9tg== From: Ard Biesheuvel <ardb@kernel.org> To: linux-arm-kernel@lists.infradead.org Cc: 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>, Anshuman Khandual <anshuman.khandual@arm.com> Subject: [PATCH v7 18/33] arm64: kernel: Remove early fdt remap code Date: Fri, 11 Nov 2022 18:11:46 +0100 Message-Id: <20221111171201.2088501-19-ardb@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221111171201.2088501-1-ardb@kernel.org> References: <20221111171201.2088501-1-ardb@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1349; i=ardb@kernel.org; h=from:subject; bh=OKEi9S6PU3zfBkd/5gRT4Fws/KLATAvA+n3Ale7bVWE=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBjboJGhIw9AO7pZv07ebBNQkowjElPHpb6Pu7XiD/G nFn9QLuJAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCY26CRgAKCRDDTyI5ktmPJDS1C/ 9aNTx0M1a6EHM1Ma5ajuISunOZxYOaV4JRp1rb+p+P6Zaxg7Dgx9jdZYJm8aroESKVXHyWN5ihBJ98 SCwU12NzCgfmJBDBufjhRd7q9tMXPfApagHt5mTbnbMlEDZUSwn1hrp5wdjMc5nWNxObWM7KV7YVDT vwazexS1yTVWx9bhd139LbpKWeB6xUH4Qxbd1KU5gdsNg0Tb7eI9zw4wlmipod1ml/GQcg1r3OfFEJ mtFitCTWskzbilnJjMWvZRrHz6J44/4QOCkbztOJmsa8ZBmwjNgEG2oRMM4MJMOCILxicVnRvTKAUh 0ivN37ze6ikStwWCuWCQZj7EwHY3mkiKltQrj5s0QJeSf0AH9M/BXmyv3FB0u6Zgn6efYtAKnzHLID ghfz6LDCC470gpg8HgrFlGv+hrDZ/p+bO9J9d55wtzQNHt9GZkG+CXHNEzFg7QoZ3cwF4wJOIug0my F7GoBzO/kye4wQmcTYpU2U3Rx4ZAFd8nJuHXySTJDZdZ8= 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-20221111_091301_006512_F3FC571F X-CRM114-Status: GOOD ( 11.22 ) 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: robustify boot sequence and add support for WXN
|
expand
|
diff --git a/arch/arm64/include/asm/setup.h b/arch/arm64/include/asm/setup.h index f4af547ef54caa70..acc5e00bf3b0fafb 100644 --- a/arch/arm64/include/asm/setup.h +++ b/arch/arm64/include/asm/setup.h @@ -7,9 +7,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 12cfe9d0d3fac10d..37e0ba95afc3e045 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -165,21 +165,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;
The early FDT remap code is no longer used so let's drop it. 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(-)