summaryrefslogtreecommitdiff
path: root/arch/microblaze/lib
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2012-06-29 10:29:46 +0200
committerMichal Simek <monstr@monstr.eu>2012-09-11 09:24:57 +0200
commite35c05baa17fc049f32c675b6ee0aaa109980dcb (patch)
tree66081ddb00aeab6b3bd56a4f25cb222cd2186563 /arch/microblaze/lib
parentb710d9d6c2921982a448903d3c10a14d6ee22ae3 (diff)
downloadu-boot-imx-e35c05baa17fc049f32c675b6ee0aaa109980dcb.zip
u-boot-imx-e35c05baa17fc049f32c675b6ee0aaa109980dcb.tar.gz
u-boot-imx-e35c05baa17fc049f32c675b6ee0aaa109980dcb.tar.bz2
microblaze: board: Remove compilation warning
Variable is used when CONFIG_SYS_FLASH_CHECKSUM is used. Warning log: board.c: In function 'board_init': board.c:101: warning: unused variable 's' Signed-off-by: Michal Simek <monstr@monstr.eu> Acked-by: Stephan Linz <linz@li-pro.net>
Diffstat (limited to 'arch/microblaze/lib')
-rw-r--r--arch/microblaze/lib/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c
index 942e18c..b5f21d8 100644
--- a/arch/microblaze/lib/board.c
+++ b/arch/microblaze/lib/board.c
@@ -32,6 +32,7 @@
#include <stdio_dev.h>
#include <serial.h>
#include <net.h>
+#include <linux/compiler.h>
#include <asm/processor.h>
#include <asm/microblaze_intc.h>
#include <fdtdec.h>
@@ -91,7 +92,7 @@ void board_init (void)
gd = (gd_t *) (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET);
bd = (bd_t *) (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET \
- GENERATED_BD_INFO_SIZE);
- char *s;
+ __maybe_unused char *s;
#if defined(CONFIG_CMD_FLASH)
ulong flash_size = 0;
#endif