include: types: add always inline compiler attribute
authorYu Chien Peter Lin <peterlin@andestech.com>
Fri, 20 Jan 2023 03:05:09 +0000 (11:05 +0800)
committerAnup Patel <anup@brainfault.org>
Sun, 22 Jan 2023 12:02:35 +0000 (17:32 +0530)
Provide __always_inline to sbi_types header.

Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/sbi_types.h

index 75cdddd..9c1fef3 100644 (file)
@@ -62,6 +62,7 @@ typedef unsigned long         physical_size_t;
 #define __packed               __attribute__((packed))
 #define __noreturn             __attribute__((noreturn))
 #define __aligned(x)           __attribute__((aligned(x)))
+#define __always_inline        inline __attribute__((always_inline))
 
 #define likely(x) __builtin_expect((x), 1)
 #define unlikely(x) __builtin_expect((x), 0)