summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Martin <dave.martin@linaro.org>2012-03-23 18:36:32 +0000
committerDietmar Eggemann <dietmar.eggemann@arm.com>2012-05-23 12:44:35 +0100
commitc1c9a4e8602f07cf702a1e06f6ce4b259ff9f541 (patch)
tree59dc8bef6cf10c20765d01cc108e0eb97ade237c
parentc13b1a358650170433e068bc6cec9361f4959340 (diff)
downloadswitcher-c1c9a4e8602f07cf702a1e06f6ce4b259ff9f541.tar.gz
switcher: Fix incorrect modifiers in the GIC save/restore code
const and volatile were in the wrong places, causing some compiler warnings. This patch corrects the modifiers to match the corresponding function arguments.
-rw-r--r--big-little/switcher/context/gic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/big-little/switcher/context/gic.c b/big-little/switcher/context/gic.c
index 7686feb..d4bb1b1 100644
--- a/big-little/switcher/context/gic.c
+++ b/big-little/switcher/context/gic.c
@@ -62,7 +62,7 @@ typedef struct {
static void wcpymem2io(void volatile *dest, void const *src, size_t count)
{
unsigned long volatile *_dest = dest;
- unsigned long *_src = src;
+ unsigned long const *_src = src;
while (count--)
*_dest++ = *_src++;
@@ -70,8 +70,8 @@ static void wcpymem2io(void volatile *dest, void const *src, size_t count)
static void wcpyio2mem(void *dest, void volatile const *src, size_t count)
{
- unsigned long *_src = src;
- unsigned long volatile *_dest = dest;
+ unsigned long volatile const *_src = src;
+ unsigned long *_dest = dest;
while (count--)
*_dest++ = *_src++;