Fix warning: passing argument 1 of 'move64' discards qualifiers from pointer target type
cover Fix warning: passing argument 1 of 'move64' discards qualifiers from pointer target type
post/drivers/memory.c +2 -2
@@ -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)
Signature · 1 line
1.5.3.2
PATCH 1/1 Fix warning: passing argument 1 of 'fpga_boot' discards qualifiers from pointer target type
board/esd/canbt/canbt.c +1 -1
@@ -39,7 +39,7 @@ extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);#endif /* fpga configuration data */ -const unsigned char fpgadata[] = { +unsigned char fpgadata[] = { #include "fpgadata.c" };
board/esd/cpci405/cpci405.c +1 -1
@@ -37,7 +37,7 @@ extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); /*cmd_#endif /* fpga configuration data - generated by bin2cc */ -const unsigned char fpgadata[] = +unsigned char fpgadata[] = {#ifdef CONFIG_CPCI405_VER2 # ifdef CONFIG_CPCI405AB
board/esd/cpciiser4/cpciiser4.c +1 -1
@@ -45,7 +45,7 @@ extern void lxt971_no_sleep(void);#endif /* fpga configuration data - generated by bin2cc */ -const unsigned char fpgadata[] = { +unsigned char fpgadata[] = { #include "fpgadata.c" };
board/esd/du405/du405.c +1 -1
@@ -45,7 +45,7 @@ extern void lxt971_no_sleep(void);#endif /* fpga configuration data - generated by bin2cc */ -const unsigned char fpgadata[] = { +unsigned char fpgadata[] = { #include "fpgadata.c" };
Signature · 1 line
1.5.3.2
PATCH 1/1 Fix warning: passing argument 1 of 'fpga_boot' discards qualifiers from pointer target type
Quoted 46 lines · In message <[email protected]> you wrote:
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>board/esd/canbt/canbt.c +1
-1@@ -39,7 +39,7 @@ extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);#endif /* fpga configuration data */ -const unsigned char fpgadata[] = { +unsigned char fpgadata[] = { #include "fpgadata.c" };board/esd/cpci405/cpci405.c +1
-1@@ -37,7 +37,7 @@ extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); /*cmd_#endif /* fpga configuration data - generated by bin2cc */ -const unsigned char fpgadata[] = +unsigned char fpgadata[] = {#ifdef CONFIG_CPCI405_VER2 # ifdef CONFIG_CPCI405AB board/esd/cpciiser4/cpciiser4.c +1
-1@@ -45,7 +45,7 @@ extern void lxt971_no_sleep(void);#endif /* fpga configuration data - generated by bin2cc */ -const unsigned char fpgadata[] = { +unsigned char fpgadata[] = { #include "fpgadata.c" };board/esd/du405/du405.c +0
-0
board/esd/du405/du405.c extern void lxt971_no_sleep(void); · line 50
Quoted 7 lines
board/esd/du405/du405.c +1
-1@@ -45,7 +45,7 @@ extern void lxt971_no_sleep(void);#endif /* fpga configuration data - generated by bin2cc */ -const unsigned char fpgadata[] = { +unsigned char fpgadata[] = { #include "fpgadata.c" };
May I ask what your rationale is for these changes? This *is* constant data, so why do you make these changes?
Best regards,
Wolfgang Denk
Signature · 6 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 Nothing in progression can rest on its original plan. We may as well think of rocking a grown man in the cradle of an infant. - Edmund Burke
cover Fix warning: passing argument 1 of 'move64' discards qualifiers from pointer target type
In reply to Jean-Christophe PLAGNIOL-VILLARDQuoted 16 lines · In message <[email protected]> you wrote:
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>post/drivers/memory.c +1
-1@@ -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