tqm834x.c: fix compiler warning
PATCH 1/1 tqm834x.c: fix compiler warning
Fix:
tqm834x.c:299: warning: passing argument 1 of 'get_ram_size' discards qualifiers from pointer target type
--- board/tqc/tqm834x/tqm834x.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
board/tqc/tqm834x/tqm834x.c +3 -3
@@ -59,7 +59,7 @@ ulong flash_get_size (ulong base, int banknum);/* Local functions */ static int detect_num_flash_banks (void ); -static long int get_ddr_bank_size (short cs,volatile long *base); +static long int get_ddr_bank_size (short cs,long *base);static void set_cs_bounds (short cs,long base,long size);static void set_cs_config (short cs,long config);static void set_ddr_config (void );
@@ -120,7 +120,7 @@ phys_size_t initdram (int board_type)debug ("\nDetecting Bank%d\n" , cs); bank_size =get_ddr_bank_size (cs, - (volatile long *)(CONFIG_SYS_DDR_BASE + size)); + (long *)(CONFIG_SYS_DDR_BASE + size)); size += bank_size;debug ("DDR Bank%d size: %d MiB\n\n" , cs, bank_size >>20 );
@@ -262,7 +262,7 @@ static int detect_num_flash_banks(void)/************************************************************************* * Detect the size of a ddr bank. Sets CS bounds and CS config accordingly. */ -static long int get_ddr_bank_size (short cs,volatile long *base) +static long int get_ddr_bank_size (short cs,long *base) {/* This array lists all valid DDR SDRAM configurations, with * Bank sizes in bytes. (Refer to Table 9-27 in the MPC8349E RM).
Signature · 1 line
1.7.6
PATCH 1/1 tqm834x.c: fix compiler warning
Quoted 11 lines · Wolfgang Denk
Fix:
tqm834x.c:299: warning: passing argument 1 of '
get_ram_size' discards qualifiers from pointer target typeSigned-off-by Wolfgang Denk <[email protected]>Cc Kim Phillips <[email protected]>Cc Kumar Gala <[email protected]>---
board/tqc/tqm834x/tqm834x.c| 6 +++---1 files changed, 3 insertions(+), 3 deletions(-)
- k
Kim Phillips
AppliedPATCH 1/1 tqm834x.c: fix compiler warning
Quoted 7 lines · On Mon, 1 Aug 2011 10:13:39 -0500 Kumar Gala <[email protected]> wrote:
Quoted 5 lines · Wolfgang Denk
Fix:
tqm834x.c:299: warning: passing argument 1 of '
get_ram_size' discards qualifiers from pointer target type
Quoted 8 lines
Quoted 6 lines
Signed-off-by Wolfgang Denk <[email protected]>Cc Kim Phillips <[email protected]>Cc Kumar Gala <[email protected]>---
board/tqc/tqm834x/tqm834x.c| 6 +++---1 files changed, 3 insertions(+), 3 deletions(-)Acked-by Kumar Gala <[email protected]>
applied.
Thanks,
Kim
[U-Boot] [GIT PULL] mpc83xx: tqm834x.c: fix compiler warning
WD, please pull:
The following changes since commit 33a6b9e90bfd56ed389f37470534eede0773cdd7:
environment.h: fix warning: "CONFIG_ENV_IS_EMBEDDED" redefined (2011-08-01 15:20:16 +0200)
are available in the git repository at:
git://git.denx.de/u-boot-mpc83xx.git master
Wolfgang Denk (1):
tqm834x.c: fix compiler warning
board/tqc/tqm834x/tqm834x.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
Thanks,
Kim
Wolfgang Denk
Applied[U-Boot] [GIT PULL] mpc83xx: tqm834x.c: fix compiler warning
Dear Kim Phillips,
Quoted 6 lines · In message <[email protected]> you wrote:
WD, please pull:
The following changes since commit
33a6b9e90bfd56ed389f37470534eede0773cdd7:
environment.h: fix warning: "CONFIG_ENV_IS_EMBEDDED" redefined (2011-08-01 15:20:16 +0200)
Quoted 8 lines
are available in the git repository at:
git://git.denx.de/u-boot-mpc83xx.gitmasterWolfgang Denk (1):
tqm834x.c: fix compiler warningboard/tqc/tqm834x/tqm834x.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
Applied, thanks.
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 Life would be so much easier if everyone read the manual.