Most other arm_mem_* are functions, convert arm_mem_scratch to a function as well. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- 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) { -- 2.39.2