diff options
| author | Elyes Haouas <ehaouas@noos.fr> | 2024-09-15 21:34:26 +0530 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-09-27 10:52:32 +0530 |
| commit | 7b3de48cd583dbd8c0b9efa65f417c4e5d5a6b79 (patch) | |
| tree | d0b69e4eb1fd12aaf130d99676c63e4f87b2b8c0 /include | |
| parent | bfa9f9aee7bb905f3996d1e4877fe61405fbc271 (diff) | |
| download | opensbi-7b3de48cd583dbd8c0b9efa65f417c4e5d5a6b79.zip opensbi-7b3de48cd583dbd8c0b9efa65f417c4e5d5a6b79.tar.gz opensbi-7b3de48cd583dbd8c0b9efa65f417c4e5d5a6b79.tar.bz2 | |
include: sbi: Don't unconditionally define '__always_inline'
Update __always_inline macro define to fix opensbi upstream
build for coreboot.
Refer, https://qa.coreboot.org/job/coreboot-gerrit/257449/testReport/junit/(root)/clang/EMULATION_QEMU_RISCV_RV64_/
Closes: https://github.com/riscv-software-src/opensbi/issues/366
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h index def88bb..a9943d2 100644 --- a/include/sbi/sbi_types.h +++ b/include/sbi/sbi_types.h @@ -69,7 +69,10 @@ typedef uint64_t be64_t; #define __packed __attribute__((packed)) #define __noreturn __attribute__((noreturn)) #define __aligned(x) __attribute__((aligned(x))) + +#ifndef __always_inline #define __always_inline inline __attribute__((always_inline)) +#endif #define likely(x) __builtin_expect((x), 1) #define unlikely(x) __builtin_expect((x), 0) |
