From b5c56aba6f756eca9bfdeac67289ffafb9d37ff0 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sat, 7 May 2016 01:37:40 -0700 Subject: [PATCH] core: cortex-m0: Fix task routine prototypes The task routines are void func(void), not int func(void *). BUG=none BRANCH=none TEST=compile tested on chell Signed-off-by: Stefan Reinauer Change-Id: I599ff2433d821bfb446fbb4f84a803c6feffa0b3 Reviewed-on: https://chromium-review.googlesource.com/343213 Commit-Ready: Stefan Reinauer Tested-by: Stefan Reinauer Reviewed-by: Randall Spangler --- core/cortex-m0/task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cortex-m0/task.c b/core/cortex-m0/task.c index 1d4ded513e..b013fe82f4 100644 --- a/core/cortex-m0/task.c +++ b/core/cortex-m0/task.c @@ -32,7 +32,7 @@ typedef union { #define STACK_UNUSED_VALUE 0xdeadd00d /* declare task routine prototypes */ -#define TASK(n, r, d, s) int r(void *); +#define TASK(n, r, d, s) void r(void); void __idle(void); CONFIG_TASK_LIST CONFIG_TEST_TASK_LIST