[PATCH v2 06/34] ARM: make arm_mem_scratch() a static inline function
Sascha Hauer
s.hauer at pengutronix.de
Wed May 17 02:03:12 PDT 2023
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>
---
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
More information about the barebox
mailing list