[PATCH v3 05/10] charset: mark u16_strsize() as __efi_runtime

Abdellatif El Khlifi abdellatif.elkhlifi at arm.com
Mon Jun 29 20:28:53 CEST 2026


Hi Harsimran,

On Sat, Jun 27, 2026 at 03:44:16PM +0100, Harsimran Singh Tungal wrote:
> Mark u16_strsize() as __efi_runtime so it can be called from the EFI
> runtime variable paths added for FF-A/MM communication after
> ExitBootServices().
> 
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Harsimran Singh Tungal <harsimransingh.tungal at arm.com>
> ---
>  lib/charset.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/charset.c b/lib/charset.c
> index 182c92a50c4..738ad1352de 100644
> --- a/lib/charset.c
> +++ b/lib/charset.c
> @@ -407,7 +407,7 @@ size_t __efi_runtime u16_strnlen(const u16 *in, size_t count)
>  	return i;
>  }
>  
> -size_t u16_strsize(const void *in)
> +size_t __efi_runtime u16_strsize(const void *in)
>  {
>  	return (u16_strlen(in) + 1) * sizeof(u16);
>  }
> -- 
> 2.34.1
> 

Reviewed-by: Abdellatif El Khlifi <abdellatif.elkhlifi at arm.com>

Kind regards


More information about the U-Boot mailing list