summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-11-09 09:59:32 -0600
committerKumar Gala <galak@kernel.crashing.org>2011-11-11 07:48:59 -0600
commit3d6d9c3116a93d49a764f65df6d3718aa356f436 (patch)
tree171df4741aecacd24b0a00d44057ed6568f20ccb /arch/powerpc
parente4c9a35d21ac8d27e90db9448cfd1a8a230c8388 (diff)
downloadu-boot-imx-3d6d9c3116a93d49a764f65df6d3718aa356f436.zip
u-boot-imx-3d6d9c3116a93d49a764f65df6d3718aa356f436.tar.gz
u-boot-imx-3d6d9c3116a93d49a764f65df6d3718aa356f436.tar.bz2
arch/powerpc/cpu/mpc85xx/tlb.c: Fix GCC 4.6 build warning
Fix: tlb.c: In function 'disable_tlb': tlb.c:175:34: warning: variable '_mas7' set but not used [-Wunused-but-set-variable] Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/cpu/mpc85xx/tlb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/tlb.c b/arch/powerpc/cpu/mpc85xx/tlb.c
index 80ad04a..929f6a6 100644
--- a/arch/powerpc/cpu/mpc85xx/tlb.c
+++ b/arch/powerpc/cpu/mpc85xx/tlb.c
@@ -172,7 +172,7 @@ void set_tlb(u8 tlb, u32 epn, u64 rpn,
void disable_tlb(u8 esel)
{
- u32 _mas0, _mas1, _mas2, _mas3, _mas7;
+ u32 _mas0, _mas1, _mas2, _mas3;
free_tlb_cam(esel);
@@ -180,14 +180,13 @@ void disable_tlb(u8 esel)
_mas1 = 0;
_mas2 = 0;
_mas3 = 0;
- _mas7 = 0;
mtspr(MAS0, _mas0);
mtspr(MAS1, _mas1);
mtspr(MAS2, _mas2);
mtspr(MAS3, _mas3);
#ifdef CONFIG_ENABLE_36BIT_PHYS
- mtspr(MAS7, _mas7);
+ mtspr(MAS7, 0);
#endif
asm volatile("isync;msync;tlbwe;isync");