summaryrefslogtreecommitdiff
path: root/arch/m68k/lib/board.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-10-03 13:28:46 +0000
committerjason <jason@jason-ThinkPad-T61.(none)>2012-10-19 23:47:41 +0800
commitc59ac903f2fb515caf712ec19f4bd741659e6a45 (patch)
treead64a572d3ea6b6bfdd6b716ee92fd705b67757a /arch/m68k/lib/board.c
parentc1568ca5450cc20eb0f15246656724a1df9699c3 (diff)
downloadu-boot-imx-c59ac903f2fb515caf712ec19f4bd741659e6a45.zip
u-boot-imx-c59ac903f2fb515caf712ec19f4bd741659e6a45.tar.gz
u-boot-imx-c59ac903f2fb515caf712ec19f4bd741659e6a45.tar.bz2
m68k: Fix unused variable in board.c
The following warning was produced, fix it: board.c: In function 'board_init_r': board.c:390:8: warning: unused variable 's' [-Wunused-variable] Signed-off-by: Marek Vasut <marex@denx.de> Cc: "Jin Zhengxiong-R64188" <R64188@freescale.com> Cc: Jason Jin <jason.jin@freescale.com>
Diffstat (limited to 'arch/m68k/lib/board.c')
-rw-r--r--arch/m68k/lib/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/m68k/lib/board.c b/arch/m68k/lib/board.c
index 67c9a13..92f935b 100644
--- a/arch/m68k/lib/board.c
+++ b/arch/m68k/lib/board.c
@@ -29,6 +29,7 @@
#include <command.h>
#include <malloc.h>
#include <stdio_dev.h>
+#include <linux/compiler.h>
#include <asm/immap.h>
@@ -387,7 +388,7 @@ board_init_f (ulong bootflag)
*/
void board_init_r (gd_t *id, ulong dest_addr)
{
- char *s;
+ char *s __maybe_unused;
bd_t *bd;
#ifndef CONFIG_ENV_IS_NOWHERE