From: Michal Orzel Date: Wed, 8 Jan 2025 07:57:19 +0000 (+0100) Subject: xen/arm64: Drop relocate_and_switch_ttbr() stub X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=70f5a875becc9444a959830b10a361982c31a366;p=people%2Fandrewcoop%2Fxen.git xen/arm64: Drop relocate_and_switch_ttbr() stub In the original patch e7a80636f16e ("xen/arm: add cache coloring support for Xen image"), the stub was added under wrong assumption that DCE won't remove the function call if it's not static. This assumption is incorrect as we already rely on DCE for cases like this one. Therefore drop the stub, that otherwise would be a place potentially prone to errors in the future. Suggested-by: Julien Grall Signed-off-by: Michal Orzel Reviewed-by: Luca Fancellu Release-Acked-By: Oleksii Kurochko Reviewed-by: Bertrand Marquis --- diff --git a/xen/arch/arm/arm64/mmu/mm.c b/xen/arch/arm/arm64/mmu/mm.c index 26361c4fe4..c1efa1348a 100644 --- a/xen/arch/arm/arm64/mmu/mm.c +++ b/xen/arch/arm/arm64/mmu/mm.c @@ -171,8 +171,6 @@ void __init relocate_and_switch_ttbr(uint64_t ttbr) */ update_identity_mapping(false); } -#else -void __init relocate_and_switch_ttbr(uint64_t ttbr) {} #endif void __init switch_ttbr(uint64_t ttbr)