[PATCH v2 06/34] ARM: make arm_mem_scratch() a static inline function
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed May 17 05:53:53 PDT 2023
On 17.05.23 11:03, Sascha Hauer wrote:
> Most other arm_mem_* are functions, convert arm_mem_scratch to a
> function as well.
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> arch/arm/include/asm/barebox-arm.h | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h
> index 8ab1e90e94..139ecce06d 100644
> --- a/arch/arm/include/asm/barebox-arm.h
> +++ b/arch/arm/include/asm/barebox-arm.h
> @@ -76,7 +76,10 @@ static inline unsigned long arm_mem_optee(unsigned long endmem)
> return endmem - OPTEE_SIZE;
> }
>
> -#define arm_mem_scratch(endmem) ((endmem) - OPTEE_SIZE - SZ_32K)
> +static inline unsigned long arm_mem_scratch(unsigned long endmem)
> +{
> + return arm_mem_optee(endmem) - SZ_32K;
> +}
>
> static inline const void *arm_mem_scratch_get(void)
> {
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list