Skip to content

Commit

Permalink
[MIPS] Ocelot C: Fix warning about missmatching format string.
Browse files Browse the repository at this point in the history
  CC      arch/mips/momentum/ocelot_c/setup.o
arch/mips/momentum/ocelot_c/setup.c: In function 'momenco_time_init':
arch/mips/momentum/ocelot_c/setup.c:223: warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned int'

Change data type to match format string; a 32-bit type better suits our
needs.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Nov 6, 2006
1 parent 9c422e2 commit 2002d2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/mips/momentum/ocelot_c/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
struct callvectors* debug_vectors;

extern unsigned long marvell_base;
extern unsigned long cpu_clock;
extern unsigned int cpu_clock;

#ifdef CONFIG_MV643XX_ETH
extern unsigned char prom_mac_addr_base[6];
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/momentum/ocelot_c/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
#include "ocelot_c_fpga.h"

unsigned long marvell_base;
unsigned long cpu_clock;
unsigned int cpu_clock;

/* These functions are used for rebooting or halting the machine*/
extern void momenco_ocelot_restart(char *command);
Expand Down

0 comments on commit 2002d2b

Please sign in to comment.