From 5ef104062d52e9c5aeab7bc0d1eaa7e7e6d86ff3 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Mon, 14 Jan 2019 13:55:35 +0530 Subject: [PATCH] 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 --- include/sbi/sbi_types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h index ddcdea28..136cd47e 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