[U-Boot-Users] [PATCH] 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
Signed-off-by: Kumar Gala galak@kernel.crashing.org ---
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(-)
diff --git a/board/freescale/mpc8544ds/mpc8544ds.c b/board/freescale/mpc8544ds/mpc8544ds.c index 76d9091..23e2466 100644 --- a/board/freescale/mpc8544ds/mpc8544ds.c +++ b/board/freescale/mpc8544ds/mpc8544ds.c @@ -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"); }

In message Pine.LNX.4.64.0711181039360.30457@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
Signed-off-by: Kumar Gala galak@kernel.crashing.org
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

On Nov 18, 2007, at 12:53 PM, Wolfgang Denk wrote:
In message <Pine.LNX. 4.64.0711181039360.30457@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
Signed-off-by: Kumar Gala galak@kernel.crashing.org
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
Looks good.
- k
participants (2)
-
Kumar Gala
-
Wolfgang Denk