Re: [PATCH 09/12] efi: drop volatile qualifier from "save gd" variables

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Jun 5 07:09:51 CEST 2025


Am 4. Juni 2025 21:56:09 MESZ schrieb Rasmus Villemoes <ravi at prevas.dk>:
>The global gd pointer is no longer volatile-qualified, so drop that
>qualifier from these bookkeeping variables.
>
>Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>

Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>


>---
> lib/efi_loader/efi_boottime.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
>index 24b0e52a2a2..754bc6a6519 100644
>--- a/lib/efi_loader/efi_boottime.c
>+++ b/lib/efi_loader/efi_boottime.c
>@@ -58,7 +58,7 @@ static efi_handle_t current_image;
>  * restriction so we need to manually swap its and our view of that register on
>  * EFI callback entry/exit.
>  */
>-static volatile gd_t *efi_gd, *app_gd;
>+static gd_t *efi_gd, *app_gd;
> #endif
> 
> efi_status_t efi_uninstall_protocol



More information about the U-Boot mailing list