Patchwork [U-Boot,5/6] m68k: Fix unused variable in board.c

login
register
mail settings
Submitter Marek Vasut
Date Oct. 3, 2012, 11:28 p.m.
Message ID <1349306927-13378-6-git-send-email-marex@denx.de>
Download mbox | patch
Permalink /patch/188961/
State Accepted
Delegated to: Jason Jin
Headers show

Comments

Marek Vasut - Oct. 3, 2012, 11:28 p.m.
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 |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

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