diff options
author | Tom Hughes <tomhughes@chromium.org> | 2020-07-28 11:54:18 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-17 20:14:48 +0000 |
commit | 84c97f043260e0b06b585ae2a46cc4e9977e0ccd (patch) | |
tree | f0dc2821c9df89780f98b6ab0b98b236056eda06 /core/cortex-m0 | |
parent | aca8db3d63a3521784d5b6ca38f285bc7680404d (diff) | |
download | chrome-ec-84c97f043260e0b06b585ae2a46cc4e9977e0ccd.tar.gz |
Replace __attribute__((noreturn)) with noreturn
_Noreturn was added in C11 and the convenience macro "noreturn" is
specified by stdnoreturn.h:
https://en.cppreference.com/w/c/language/_Noreturn.
BRANCH=none
BUG=none
TEST=make buildall -j
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I30361bb5290cea1c776a7356f7e3a68edf1f8e39
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2324816
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'core/cortex-m0')
-rw-r--r-- | core/cortex-m0/panic-internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/cortex-m0/panic-internal.h b/core/cortex-m0/panic-internal.h index e32db54320..51c12f65b2 100644 --- a/core/cortex-m0/panic-internal.h +++ b/core/cortex-m0/panic-internal.h @@ -6,6 +6,8 @@ #ifndef __CROS_EC_PANIC_INTERNAL_H #define __CROS_EC_PANIC_INTERNAL_H -void exception_panic(void) __attribute__((noreturn, naked)); +#include <stdnoreturn.h> + +noreturn void exception_panic(void) __attribute__((naked)); #endif /* __CROS_EC_PANIC_INTERNAL_H */ |