Skip to content

Fix warning: passing argument 1 of 'move64' discards qualifiers from pointer target type

Wolfgang Denk u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Fix warning: passing argument 1 of 'fpga_boot' discards qualifiers from pointer target type+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot-Users] [PATCH 0/1] Fix warning: passing argument 1 of 'move64' discards qualifiers from pointer target type
Quoted 16 lines · In message <[email protected]> you wrote:
post/drivers/memory.c +1 -1
index fbc349a..bf16157 100644
@@ -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,

post/drivers/memory.c const static unsigned long long pattern[] = { · line 224

Quoted 5 lines
post/drivers/memory.c +1 -1
@@ -221,7 +221,7 @@ const static unsigned long long pattern[] = {
 	0x3333333333333333ULL,
 	0x5555555555555555ULL
 };
-const unsigned long long otherpattern = 0x0123456789abcdefULL;
+unsigned long long otherpattern = 0x0123456789abcdefULL;

This patch seems technically wrong to me. This data *is* constant.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"I've seen it. It's rubbish."          - Marvin the Paranoid Android