Skip to contentSkip to conversation

mpc8544ds.c: Fix warning in MPC8544DS build

PATCH New Kumar Gala 2 participants 3 messages Nov 18, 2007 – Nov 19, 2007

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 mpc8544ds.c: Fix warning in MPC8544DS build

mpc8544ds.c: In function 'pci_init_board':
mpc8544ds.c:230: warning: passing argument 1 of 'in_be32' makes pointer from integer without a cast

---

This fixes the only warning on 85xx in -rc4 when testing with ./MAKEALL 85xx

 board/freescale/mpc8544ds/mpc8544ds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
board/freescale/mpc8544ds/mpc8544ds.c +1 -1
index 76d9091..23e2466 100644
@@ -227,7 +227,7 @@ pci_init_board(void)
 		 * Activate ULI1575 legacy chip by performing a fake
 		 * memory access.  Needed to make ULI RTC work.
 		 */
-		in_be32(CFG_PCIE3_MEM_BASE);
+		in_be32((volatile unsigned *)CFG_PCIE3_MEM_BASE);
 	} else {
 		printf ("    PCIE3: disabled\n");
 	}
Signature · 1 line
1.5.3.4
#1 lore raw

PATCH 1/1 mpc8544ds.c: Fix warning in MPC8544DS build

Quoted 11 lines · In message <[email protected]> you wrote:

mpc8544ds.c: In function 'pci_init_board':
mpc8544ds.c:230: warning: passing argument 1 of 'in_be32' makes pointer from integer without a cast

---

This fixes the only warning on 85xx in -rc4 when testing with ./MAKEALL 85xx

 board/freescale/mpc8544ds/mpc8544ds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

I already checked in a similar fix earlier today. Please check.

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
If you want strict real-time behavior, run in the real  time  schedu-
ling class.  But there are no seatbelts or airbags;  main(){for(;;);}
can hard hang your system.                          -- Bart Smaalders
author
#2 lore raw

PATCH 1/1 mpc8544ds.c: Fix warning in MPC8544DS build

Quoted 13 lines · Wolfgang Denk

In message <Pine.LNX.

Quoted 11 lines · 4.64.0711181039360.30457 at blarg.am.freescale.net> you wrote:

mpc8544ds.c: In function 'pci_init_board':
mpc8544ds.c:230: warning: passing argument 1 of 'in_be32' makes pointer from integer without a cast

---

This fixes the only warning on 85xx in -rc4 when testing with ./ MAKEALL
85xx

Quoted 8 lines
Quoted 2 lines

board/freescale/mpc8544ds/mpc8544ds.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

I already checked in a similar fix earlier today. Please check.

Best regards,

Wolfgang Denk

Looks good.

- k