[PATCH] [POWERPC] fix non HUGETLB_PAGE build warning
From: Stephen Rothwell <hidden>
Date: 2007-05-14 04:11:37
arch/powerpc/mm/mmu_context_64.c: In function 'init_new_context': arch/powerpc/mm/mmu_context_64.c:31: warning: unused variable 'new_context' Signed-off-by: Stephen Rothwell <redacted> --- arch/powerpc/mm/mmu_context_64.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) -- Cheers, Stephen Rothwell sfr@canb.auug.org.au
diff --git a/arch/powerpc/mm/mmu_context_64.c b/arch/powerpc/mm/mmu_context_64.c
index 7a78cdc..d263f88 100644
--- a/arch/powerpc/mm/mmu_context_64.c
+++ b/arch/powerpc/mm/mmu_context_64.c@@ -28,7 +28,9 @@ int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { int index; int err; +#ifdef CONFIG_PPC_MM_SLICES int new_context = (mm->context.id == 0); +#endif again: if (!idr_pre_get(&mmu_context_idr, GFP_KERNEL))
--
1.5.1.4