summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/npcx/system.c2
-rw-r--r--chip/stm32/bkpdata.c2
-rw-r--r--core/cortex-m/vecttable.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/chip/npcx/system.c b/chip/npcx/system.c
index d85dc3cdde..47909a5f54 100644
--- a/chip/npcx/system.c
+++ b/chip/npcx/system.c
@@ -1374,7 +1374,7 @@ void system_jump_to_booter(void)
#endif
}
-uint32_t system_get_lfw_address()
+uint32_t system_get_lfw_address(void)
{
/*
* In A3 version, we don't use little FW anymore
diff --git a/chip/stm32/bkpdata.c b/chip/stm32/bkpdata.c
index 5a51128fc3..65fedae3f8 100644
--- a/chip/stm32/bkpdata.c
+++ b/chip/stm32/bkpdata.c
@@ -65,7 +65,7 @@ int bkpdata_index_lookup(enum system_bbram_idx idx, int *msb)
return -1;
}
-uint32_t bkpdata_read_reset_flags()
+uint32_t bkpdata_read_reset_flags(void)
{
uint32_t flags = bkpdata_read(BKPDATA_INDEX_SAVED_RESET_FLAGS);
diff --git a/core/cortex-m/vecttable.c b/core/cortex-m/vecttable.c
index e89eca17c0..6f57deb603 100644
--- a/core/cortex-m/vecttable.c
+++ b/core/cortex-m/vecttable.c
@@ -20,7 +20,7 @@ typedef void (*func)(void);
#if PASS == 1
/* Default exception handler */
void __attribute__((used, naked)) default_handler(void);
-void default_handler()
+void default_handler(void)
{
asm(".thumb_func\n"
" b exception_panic");
@@ -58,7 +58,7 @@ void weak_with_default svc_handler(int desched, task_id_t resched);
* it only loads r0 (desched) and r1 (resched) for svc_handler.
*/
void __attribute__((used, naked)) svc_helper_handler(void);
-void svc_helper_handler()
+void svc_helper_handler(void)
{
asm(".thumb_func\n"
" tst lr, #4 /* see if called from supervisor mode */\n"