summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_types.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-01-14 11:25:35 +0300
committerAnup Patel <anup@brainfault.org>2019-01-16 08:55:25 +0300
commit5ef104062d52e9c5aeab7bc0d1eaa7e7e6d86ff3 (patch)
tree7a4226326258bb5dfbbe89c2d6095e47f8d8e6c9 /include/sbi/sbi_types.h
parent647f36f5f97f727d5fbe0d969e17c75ddfd4053e (diff)
downloadopensbi-5ef104062d52e9c5aeab7bc0d1eaa7e7e6d86ff3.tar.xz
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.h2
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