]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
m68k: Fix unused variable in board.c
authorMarek Vasut <marex@denx.de>
Wed, 3 Oct 2012 13:28:46 +0000 (13:28 +0000)
committerjason <jason@jason-ThinkPad-T61.(none)>
Fri, 19 Oct 2012 15:47:41 +0000 (23:47 +0800)
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>
arch/m68k/lib/board.c

index 67c9a1382e30160f7278c9ec89df005fd10eff56..92f935bd0183e439aa7465a865a78f28031df613 100644 (file)
@@ -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