]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
board/etin/kvme080/multiverse.c: Fix GCC 4.6 build warning.
authorWolfgang Denk <wd@denx.de>
Sat, 5 Nov 2011 05:12:59 +0000 (05:12 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:18:10 +0000 (22:18 +0100)
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Sangmoon Kim <dogoil@etinsys.com>
board/etin/kvme080/multiverse.c

index eb895817d5fcad409a99d7e2a8f2b551d4db27a9..93ad57a2697352508d21708a4e3e9dd740a320f4 100644 (file)
@@ -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;