summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2006-07-13 17:54:44 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2006-07-13 18:43:25 +1000
commit2d69ff32ebf3dff9e9b48bbbbafe2b9b6f188d48 (patch)
tree8c1a67ff3867c71427d10331d0e68f6517846477 /arch/powerpc/mm
parent463c61928c453c2998d39b683c86385ee877c289 (diff)
downloadlinux-2d69ff32ebf3dff9e9b48bbbbafe2b9b6f188d48.tar.gz
linux-2d69ff32ebf3dff9e9b48bbbbafe2b9b6f188d48.tar.bz2
linux-2d69ff32ebf3dff9e9b48bbbbafe2b9b6f188d48.zip
[POWERPC] Fix a compiler warning in mm/tlb_64.c
The compiler doesn't understand that BUG() never returns, so complains that psize isn't set. Just set it to the normal value, which seems to produce nice code and keeps gcc happy. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/tlb_64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/tlb_64.c b/arch/powerpc/mm/tlb_64.c
index f6eef78efd29..b58baa65c4a7 100644
--- a/arch/powerpc/mm/tlb_64.c
+++ b/arch/powerpc/mm/tlb_64.c
@@ -146,6 +146,7 @@ void hpte_update(struct mm_struct *mm, unsigned long addr,
psize = mmu_huge_psize;
#else
BUG();
+ psize = pte_pagesize_index(pte); /* shutup gcc */
#endif
} else
psize = pte_pagesize_index(pte);