[PATCH] [POWERPC] fix non HUGETLB_PAGE build warning

Stephen Rothwell sfr at canb.auug.org.au
Mon May 14 14:11:36 EST 2007


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 <sfr at canb.auug.org.au>
---
 arch/powerpc/mm/mmu_context_64.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

-- 
Cheers,
Stephen Rothwell                    sfr at 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




More information about the Linuxppc-dev mailing list