diff options
author | Olof Johansson <olof@lixom.net> | 2007-10-19 23:39:26 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-11-07 22:15:29 -0500 |
commit | bdd71eec9b24fb6f7e83148f73c2312a42b2aed5 (patch) | |
tree | b9acbae9138bac83b16bfe7971d3f80fce15bf58 /arch/ppc/syslib | |
parent | 97a4649d6ffce4a5d7f5ce018d87a6cefcb4ad03 (diff) |
[POWERPC] Fix build break in arch/ppc/syslib/m8260_setup.c
Fix build break and warnings in current mainline git:
arch/ppc/syslib/m8260_setup.c: In function 'm8260_setup_arch':
arch/ppc/syslib/m8260_setup.c:63: error: implicit declaration of function 'identify_ppc_sys_by_name_and_id'
arch/ppc/syslib/m8260_setup.c:64: warning: passing argument 1 of 'in_be32' makes pointer from integer without a cast
arch/ppc/syslib/m8260_setup.c: In function 'm8260_show_cpuinfo':
arch/ppc/syslib/m8260_setup.c:158: warning: format '%08x' expects type 'unsigned int', but argument 5 has type 'long unsigned int'
arch/ppc/syslib/m8260_setup.c:158: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
arch/ppc/syslib/m8260_setup.c:158: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long unsigned int'
arch/ppc/syslib/m8260_setup.c:158: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long unsigned int'
arch/ppc/syslib/m8260_setup.c:158: warning: format '%u' expects type 'unsigned int', but argument 9 has type 'long unsigned int'
make[1]: *** [arch/ppc/syslib/m8260_setup.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/syslib')
-rw-r--r-- | arch/ppc/syslib/m8260_setup.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/ppc/syslib/m8260_setup.c b/arch/ppc/syslib/m8260_setup.c index 15f0d7323535..46588fa94381 100644 --- a/arch/ppc/syslib/m8260_setup.c +++ b/arch/ppc/syslib/m8260_setup.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <asm/machdep.h> | 25 | #include <asm/machdep.h> |
26 | #include <asm/bootinfo.h> | 26 | #include <asm/bootinfo.h> |
27 | #include <asm/time.h> | 27 | #include <asm/time.h> |
28 | #include <asm/ppc_sys.h> | ||
28 | 29 | ||
29 | #include "cpm2_pic.h" | 30 | #include "cpm2_pic.h" |
30 | 31 | ||
@@ -61,7 +62,7 @@ m8260_setup_arch(void) | |||
61 | #endif | 62 | #endif |
62 | 63 | ||
63 | identify_ppc_sys_by_name_and_id(BOARD_CHIP_NAME, | 64 | identify_ppc_sys_by_name_and_id(BOARD_CHIP_NAME, |
64 | in_be32(CPM_MAP_ADDR + CPM_IMMR_OFFSET)); | 65 | in_be32((void *)CPM_MAP_ADDR + CPM_IMMR_OFFSET)); |
65 | 66 | ||
66 | m82xx_board_setup(); | 67 | m82xx_board_setup(); |
67 | } | 68 | } |
@@ -147,12 +148,12 @@ m8260_show_cpuinfo(struct seq_file *m) | |||
147 | seq_printf(m, "vendor\t\t: %s\n" | 148 | seq_printf(m, "vendor\t\t: %s\n" |
148 | "machine\t\t: %s\n" | 149 | "machine\t\t: %s\n" |
149 | "\n" | 150 | "\n" |
150 | "mem size\t\t: 0x%08x\n" | 151 | "mem size\t\t: 0x%08lx\n" |
151 | "console baud\t\t: %d\n" | 152 | "console baud\t\t: %ld\n" |
152 | "\n" | 153 | "\n" |
153 | "core clock\t: %u MHz\n" | 154 | "core clock\t: %lu MHz\n" |
154 | "CPM clock\t: %u MHz\n" | 155 | "CPM clock\t: %lu MHz\n" |
155 | "bus clock\t: %u MHz\n", | 156 | "bus clock\t: %lu MHz\n", |
156 | CPUINFO_VENDOR, CPUINFO_MACHINE, bp->bi_memsize, | 157 | CPUINFO_VENDOR, CPUINFO_MACHINE, bp->bi_memsize, |
157 | bp->bi_baudrate, bp->bi_intfreq / 1000000, | 158 | bp->bi_baudrate, bp->bi_intfreq / 1000000, |
158 | bp->bi_cpmfreq / 1000000, bp->bi_busfreq / 1000000); | 159 | bp->bi_cpmfreq / 1000000, bp->bi_busfreq / 1000000); |