From 85ddb2ce533cb0276aab7780238ec98e1abec2fe Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 2 May 2018 19:03:38 +0200 Subject: Shuffle const around gcc 8.1 complains about duplicate const, and while some of these really are duplicate, others look like they were supposed to tighten the API contract so that variables are "const pointer to const data", but didn't have that effect. BUG=b:65441143 BRANCH=none TEST=building Chrome EC as part of upstream coreboot's build with a gcc 8.1 compiler now works (better. there are other issues left) Change-Id: I6016c5f282516471746f08d5714ea07ebdd10331 Signed-off-by: Patrick Georgi Reviewed-on: https://chromium-review.googlesource.com/1039812 Commit-Ready: Patrick Georgi Tested-by: Patrick Georgi Reviewed-by: Stefan Reinauer Reviewed-by: Vincent Palatin --- core/cortex-m/task.c | 2 +- core/cortex-m0/task.c | 2 +- core/nds32/task.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c index b2515e4d3f..75e54f6633 100644 --- a/core/cortex-m/task.c +++ b/core/cortex-m/task.c @@ -126,7 +126,7 @@ static const struct { uint32_t r0; uint32_t pc; uint16_t stack_size; -} const tasks_init[] = { +} tasks_init[] = { TASK(IDLE, __idle, 0, IDLE_TASK_STACK_SIZE) CONFIG_TASK_LIST CONFIG_TEST_TASK_LIST diff --git a/core/cortex-m0/task.c b/core/cortex-m0/task.c index a137bf7cee..d70dff1d59 100644 --- a/core/cortex-m0/task.c +++ b/core/cortex-m0/task.c @@ -94,7 +94,7 @@ static const struct { uint32_t r0; uint32_t pc; uint16_t stack_size; -} const tasks_init[] = { +} tasks_init[] = { TASK(IDLE, __idle, 0, IDLE_TASK_STACK_SIZE) CONFIG_TASK_LIST CONFIG_TEST_TASK_LIST diff --git a/core/nds32/task.c b/core/nds32/task.c index 2de4c78303..17f02cd10e 100644 --- a/core/nds32/task.c +++ b/core/nds32/task.c @@ -109,7 +109,7 @@ static const struct { uint32_t r0; uint32_t pc; uint16_t stack_size; -} const tasks_init[] = { +} tasks_init[] = { TASK(IDLE, __idle, 0, IDLE_TASK_STACK_SIZE) CONFIG_TASK_LIST CONFIG_TEST_TASK_LIST -- cgit v1.2.1