[U-Boot-Users] [PATCH 0/1] Fix warning: passing argument 1 of 'move64' discards qualifiers from pointer target type

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon Nov 19 21:27:09 CET 2007


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>

diff --git a/post/drivers/memory.c b/post/drivers/memory.c
index fbc349a..bf16157 100644
--- a/post/drivers/memory.c
+++ b/post/drivers/memory.c
@@ -207,7 +207,7 @@ static void move64(unsigned long long *src, unsigned long long *dest)
  * than the test pattern.  This is for detecting floating bus lines.
  *
  */
-const static unsigned long long pattern[] = {
+static unsigned long long pattern[] = {
 	0xaaaaaaaaaaaaaaaaULL,
 	0xccccccccccccccccULL,
 	0xf0f0f0f0f0f0f0f0ULL,
@@ -221,7 +221,7 @@ const static unsigned long long pattern[] = {
 	0x3333333333333333ULL,
 	0x5555555555555555ULL
 };
-const unsigned long long otherpattern = 0x0123456789abcdefULL;
+unsigned long long otherpattern = 0x0123456789abcdefULL;
 
 
 static int memory_post_dataline(unsigned long long * pmem)
-- 
1.5.3.2





More information about the U-Boot mailing list