From 775138814efff4117393de43f90eec42e010c46d Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Wed, 20 Nov 2024 23:25:24 +0000 Subject: [PATCH] Change __always_inline to __force_inline to suppress GCC errors --- src/rp2_common/hardware_xip_cache/xip_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp2_common/hardware_xip_cache/xip_cache.c b/src/rp2_common/hardware_xip_cache/xip_cache.c index c72b7de7d..5a78ec0f4 100644 --- a/src/rp2_common/hardware_xip_cache/xip_cache.c +++ b/src/rp2_common/hardware_xip_cache/xip_cache.c @@ -24,7 +24,7 @@ typedef enum { // safely from flash, because they are likely to be called during a flash programming operation // (which makes flash execution momentarily unsafe) -__always_inline static void check_xip_offset_range(uintptr_t start_offset, uintptr_t size_bytes) { +__force_inline static void check_xip_offset_range(uintptr_t start_offset, uintptr_t size_bytes) { // We use offsets, not addresses, for consistency with the flash API. This means the range of // valid inputs starts at 0. (void)start_offset;