mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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>
This commit is contained in:
parent
8b337be04e
commit
8a33201d0c
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue