summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-30 22:21:19 -0400
committerIan Moffett <ian@osmora.org>2024-06-30 22:21:19 -0400
commit3ef807f071feaffef409e1817d781a9d49584b5c (patch)
tree897d50df165d6a173b2c3c4aad85850ba29b07dc
parentccdd5b6d2f196cb6a2add34f71eebccbedb35c55 (diff)
kernel: cdefs: Add __dead
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/include/sys/cdefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/sys/cdefs.h b/sys/include/sys/cdefs.h
index bec6271..32d7786 100644
--- a/sys/include/sys/cdefs.h
+++ b/sys/include/sys/cdefs.h
@@ -35,6 +35,7 @@
#define __ASMV __asm__ __volatile__
#define __always_inline __attribute__((__always_inline__))
#define __packed __attribute__((__packed__))
+#define __dead __attribute__((__noreturn__))
#define __likely(exp) __builtin_expect(((exp) != 0), 1)
#define __unlikely(exp) __builtin_expect(((exp) != 0), 0)
#define __static_assert _Static_assert