diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-01-14 13:55:35 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-16 11:25:25 +0530 |
commit | 5ef104062d52e9c5aeab7bc0d1eaa7e7e6d86ff3 (patch) | |
tree | 7a4226326258bb5dfbbe89c2d6095e47f8d8e6c9 /include/sbi/sbi_types.h | |
parent | 647f36f5f97f727d5fbe0d969e17c75ddfd4053e (diff) |
include: Add __noreturn define for noreturn function attribute
There are quite a few noreturn functions in OpenSBI hence
we add commong __noreturn define for noreturn functin attribute.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi/sbi_types.h')
-rw-r--r-- | include/sbi/sbi_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h index ddcdea2..136cd47 100644 --- a/include/sbi/sbi_types.h +++ b/include/sbi/sbi_types.h @@ -54,4 +54,6 @@ typedef unsigned long physical_size_t; #define NULL ((void *)0) +#define __noreturn __attribute__((noreturn)) + #endif |