summaryrefslogtreecommitdiff
path: root/chip/mec1322
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2020-07-28 11:54:18 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-17 20:14:48 +0000
commit84c97f043260e0b06b585ae2a46cc4e9977e0ccd (patch)
treef0dc2821c9df89780f98b6ab0b98b236056eda06 /chip/mec1322
parentaca8db3d63a3521784d5b6ca38f285bc7680404d (diff)
downloadchrome-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 'chip/mec1322')
-rw-r--r--chip/mec1322/lfw/ec_lfw.h4
-rw-r--r--chip/mec1322/system.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/chip/mec1322/lfw/ec_lfw.h b/chip/mec1322/lfw/ec_lfw.h
index b7f9f6359f..dd26fbd323 100644
--- a/chip/mec1322/lfw/ec_lfw.h
+++ b/chip/mec1322/lfw/ec_lfw.h
@@ -6,7 +6,9 @@
*
*/
-void lfw_main(void) __attribute__ ((noreturn, naked));
+#include <stdnoreturn.h>
+
+noreturn void lfw_main(void) __attribute__ ((naked));
void fault_handler(void) __attribute__((naked));
struct int_vector_t {
diff --git a/chip/mec1322/system.c b/chip/mec1322/system.c
index 9104bc17b1..a3043ba46b 100644
--- a/chip/mec1322/system.c
+++ b/chip/mec1322/system.c
@@ -105,7 +105,7 @@ uint32_t chip_read_reset_flags(void)
return MEC1322_VBAT_RAM(HIBDATA_INDEX_SAVED_RESET_FLAGS);
}
-__attribute__((noreturn))
+noreturn
void _system_reset(int flags, int wake_from_hibernate)
{
uint32_t save_flags = 0;