[PATCH 9/9] arm: socfpga: agilex5: add explicit unreachable after TF-A load
Michael Tretter
m.tretter at pengutronix.de
Thu Apr 16 02:48:13 PDT 2026
While agilex5_load_and_start_image_via_tfa() already contains a
__builtin_unreachable(), it's not obvious that the function doesn't
return when looking at agilex5_barebox_entry().
Add __builtin_unreachable() to help the reader.
Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>
---
arch/arm/mach-socfpga/atf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-socfpga/atf.c b/arch/arm/mach-socfpga/atf.c
index e3461d01174e..c7be4e11d2ea 100644
--- a/arch/arm/mach-socfpga/atf.c
+++ b/arch/arm/mach-socfpga/atf.c
@@ -59,6 +59,7 @@ void __noreturn agilex5_barebox_entry(void *fdt)
socfpga_mailbox_s10_qspi_open();
agilex5_load_and_start_image_via_tfa();
+ __builtin_unreachable();
}
membase = agilex5_mpfe_sdram_base();
--
2.47.3
More information about the barebox
mailing list