From 532c437dc9b39f9f3b7f5c9fc506c474caa8ccbb Mon Sep 17 00:00:00 2001 From: chao an Date: Tue, 16 Jul 2024 15:03:20 +0800 Subject: [PATCH] compiler/tasking: fix build break after inline spinlock change Regression by: | commit a4fece3450be99fbca5815558dec9374d4ee04e3 | Author: hujun5 | Date: Wed Jul 3 15:10:49 2024 +0800 | | spin_lock: inline spin_lock Signed-off-by: chao an --- include/nuttx/compiler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h index 2621584c56..c5610df597 100644 --- a/include/nuttx/compiler.h +++ b/include/nuttx/compiler.h @@ -993,7 +993,8 @@ # define end_packed_struct __attribute__((packed)) # define reentrant_function # define naked_function -# define always_inline_function __attribute__((always_inline)) +# define always_inline_function __attribute__((always_inline,no_instrument_function)) +# define inline_function __attribute__((always_inline)) inline # define noinline_function __attribute__((noinline)) # define noinstrument_function # define nooptimiziation_function __attribute__((optimize(0)))