projects
/
platform
/
kernel
/
opensbi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ecbe6d
)
include: types: add always inline compiler attribute
author
Yu Chien Peter Lin
<peterlin@andestech.com>
Fri, 20 Jan 2023 03:05:09 +0000
(11:05 +0800)
committer
Anup 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
patch
|
blob
|
history
diff --git
a/include/sbi/sbi_types.h
b/include/sbi/sbi_types.h
index
75cdddd
..
9c1fef3
100644
(file)
--- a/
include/sbi/sbi_types.h
+++ b/
include/sbi/sbi_types.h
@@
-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)