Patchwork [U-Boot,02/22] board/etin/kvme080/multiverse.c: Fix GCC 4.6 build warning.

login
register
mail settings
Submitter Wolfgang Denk
Date Nov. 5, 2011, 3:12 p.m.
Message ID <1320505999-9770-3-git-send-email-wd@denx.de>
Download mbox | patch
Permalink /patch/123872/
State Accepted
Commit 17f81f62fdb96d354033e73ea96649f4a1fd5b03
Headers show

Comments

Wolfgang Denk - Nov. 5, 2011, 3:12 p.m.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Sangmoon Kim <dogoil@etinsys.com>
---
 board/etin/kvme080/multiverse.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Wolfgang Denk - Nov. 7, 2011, 9:18 p.m.
Dear Wolfgang Denk,

In message <1320505999-9770-3-git-send-email-wd@denx.de> you wrote:
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Sangmoon Kim <dogoil@etinsys.com>
> ---
>  board/etin/kvme080/multiverse.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/board/etin/kvme080/multiverse.c b/board/etin/kvme080/multiverse.c
index eb89581..93ad57a 100644
--- a/board/etin/kvme080/multiverse.c
+++ b/board/etin/kvme080/multiverse.c
@@ -17,6 +17,7 @@ 
 #include <common.h>
 #include <asm/io.h>
 #include <pci.h>
+#include <linux/compiler.h>
 
 #include "multiverse.h"
 
@@ -103,7 +104,7 @@  int multiv_reset(unsigned long base)
 
 void multiv_auto_slot_id(unsigned long base)
 {
-	unsigned int vector;
+	__maybe_unused unsigned int vector;
 	int slot_id = 1;
 	if (readb(base + VME_CTRL) & VME_CTRL_SYSFAIL) {
 		*(volatile unsigned int*)(base + VME_IRQ2_REG) = 0xfe;