diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-08-15 16:33:55 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-17 11:01:58 +1000 |
commit | 9dfe5c53d0fcc08e9efc1e13bb6702fac74f4a12 (patch) | |
tree | df65e57c6e3748ae26fdedc49b7423d612ba0933 /arch/powerpc/mm/mmu_context_64.c | |
parent | 1ac9f1f71dea5944085b7b4954516794a9dab35a (diff) | |
download | kernel-crypto-9dfe5c53d0fcc08e9efc1e13bb6702fac74f4a12.tar.gz kernel-crypto-9dfe5c53d0fcc08e9efc1e13bb6702fac74f4a12.tar.xz kernel-crypto-9dfe5c53d0fcc08e9efc1e13bb6702fac74f4a12.zip |
[POWERPC] Fix non HUGETLB_PAGE build warning
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@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/mmu_context_64.c')
-rw-r--r-- | arch/powerpc/mm/mmu_context_64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/mm/mmu_context_64.c b/arch/powerpc/mm/mmu_context_64.c index 7a78cdc0515..901ea765f14 100644 --- a/arch/powerpc/mm/mmu_context_64.c +++ b/arch/powerpc/mm/mmu_context_64.c @@ -28,7 +28,6 @@ int init_new_context(struct task_struct *tsk, struct mm_struct *mm) { int index; int err; - int new_context = (mm->context.id == 0); again: if (!idr_pre_get(&mmu_context_idr, GFP_KERNEL)) @@ -50,19 +49,19 @@ again: return -ENOMEM; } - mm->context.id = index; #ifdef CONFIG_PPC_MM_SLICES /* The old code would re-promote on fork, we don't do that * when using slices as it could cause problem promoting slices * that have been forced down to 4K */ - if (new_context) + if (mm->context.id == 0) slice_set_user_psize(mm, mmu_virtual_psize); #else mm->context.user_psize = mmu_virtual_psize; mm->context.sllp = SLB_VSID_USER | mmu_psize_defs[mmu_virtual_psize].sllp; #endif + mm->context.id = index; return 0; } |