summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-04 15:55:59 +0000
committerWolfgang Denk <wd@denx.de>2011-11-07 22:16:55 +0100
commit8a33201d0c48c7b05a7b2ee978d3a56d1b2d81a7 (patch)
tree4eed5794189341bdebc766292691570bd523b40f /arch/powerpc/lib
parent8b337be04ec237d062ff2fab929ceea32fa3da83 (diff)
downloadu-boot-imx-8a33201d0c48c7b05a7b2ee978d3a56d1b2d81a7.zip
u-boot-imx-8a33201d0c48c7b05a7b2ee978d3a56d1b2d81a7.tar.gz
u-boot-imx-8a33201d0c48c7b05a7b2ee978d3a56d1b2d81a7.tar.bz2
arch/powerpc/lib/bat_rw.c: Fix GCC 4.6 build warning
Fix: bat_rw.c: In function 'write_bat': bat_rw.c:38:6: warning: variable 'batn' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk <wd@denx.de> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: Andy Fleming <afleming@gmail.com>
Diffstat (limited to 'arch/powerpc/lib')
-rw-r--r--arch/powerpc/lib/bat_rw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/lib/bat_rw.c b/arch/powerpc/lib/bat_rw.c
index c48c240..113c293 100644
--- a/arch/powerpc/lib/bat_rw.c
+++ b/arch/powerpc/lib/bat_rw.c
@@ -26,6 +26,7 @@
#include <asm/processor.h>
#include <asm/mmu.h>
#include <asm/io.h>
+#include <linux/compiler.h>
#ifdef CONFIG_ADDR_MAP
#include <addr_map.h>
@@ -35,7 +36,7 @@ DECLARE_GLOBAL_DATA_PTR;
int write_bat (ppc_bat_t bat, unsigned long upper, unsigned long lower)
{
- int batn = -1;
+ __maybe_unused int batn = -1;
sync();