Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d69ff32 authored by Michael Ellerman's avatar Michael Ellerman Committed by Stephen Rothwell
Browse files

[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: default avatarMichael Ellerman <michael@ellerman.id.au>
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
parent 463c6192
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);