summaryrefslogtreecommitdiffstats
path: root/drivers/fpga
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-06-07 22:07:58 -0600
committerTom Rini <trini@ti.com>2014-06-11 16:27:05 -0400
commitddc94378db9fe0c9076512768b3576e0fdc580dd (patch)
tree8b88de08afadcdcc7f723940ce1f2a8c2291860a /drivers/fpga
parent34e4a2ec0ad95cea910094e33761bddf56ad7fc0 (diff)
downloadtalos-obmc-uboot-ddc94378db9fe0c9076512768b3576e0fdc580dd.tar.gz
talos-obmc-uboot-ddc94378db9fe0c9076512768b3576e0fdc580dd.zip
m68k: Fix warnings with gcc 4.6
Most of the warnings seem to be related to using 'int' for size_t. Change this and fix up the remaining warnings and problems. For bootm, the warning was masked by others, and there is an actual bug in the code. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/fpga')
-rw-r--r--drivers/fpga/altera.c6
-rw-r--r--drivers/fpga/xilinx.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/fpga/altera.c b/drivers/fpga/altera.c
index af189f4ef4..6e34a8e56e 100644
--- a/drivers/fpga/altera.c
+++ b/drivers/fpga/altera.c
@@ -153,9 +153,9 @@ int altera_info( Altera_desc *desc )
printf ("Unsupported interface type, %d\n", desc->iface);
}
- printf ("Device Size: \t%d bytes\n"
- "Cookie: \t0x%x (%d)\n",
- desc->size, desc->cookie, desc->cookie);
+ printf("Device Size: \t%zd bytes\n"
+ "Cookie: \t0x%x (%d)\n",
+ desc->size, desc->cookie, desc->cookie);
if (desc->iface_fns) {
printf ("Device Function Table @ 0x%p\n", desc->iface_fns);
diff --git a/drivers/fpga/xilinx.c b/drivers/fpga/xilinx.c
index 3795c1aff6..adb4b8cd25 100644
--- a/drivers/fpga/xilinx.c
+++ b/drivers/fpga/xilinx.c
@@ -220,9 +220,9 @@ int xilinx_info(xilinx_desc *desc)
printf ("Unsupported interface type, %d\n", desc->iface);
}
- printf ("Device Size: \t%d bytes\n"
- "Cookie: \t0x%x (%d)\n",
- desc->size, desc->cookie, desc->cookie);
+ printf("Device Size: \t%zd bytes\n"
+ "Cookie: \t0x%x (%d)\n",
+ desc->size, desc->cookie, desc->cookie);
if (desc->name)
printf("Device name: \t%s\n", desc->name);
OpenPOWER on IntegriCloud