fix spufs build after ->fault changes

83c54070ee1a2d05c89793884bea1a03f2851ed4 broke spufs by incorrectly
updating the code, this patch gets it to compile again.

It's probably still broken due to the scheduler changes, but this
at least makes sure cell kernels can still be built.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geoff Levand <geoffrey.levand@am.sony.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Christoph Hellwig and committed by Linus Torvalds 80422977 efffbeee

+11 -11
+11 -11
arch/powerpc/platforms/cell/spufs/fault.c
··· 74 74 goto bad_area; 75 75 } 76 76 ret = 0; 77 - fault = handle_mm_fault(mm, vma, ea, is_write); 78 - if (unlikely(fault & VM_FAULT_ERROR)) { 79 - if (fault & VM_FAULT_OOM) { 77 + *flt = handle_mm_fault(mm, vma, ea, is_write); 78 + if (unlikely(*flt & VM_FAULT_ERROR)) { 79 + if (*flt & VM_FAULT_OOM) { 80 80 ret = -ENOMEM; 81 81 goto bad_area; 82 - } else if (fault & VM_FAULT_SIGBUS) { 82 + } else if (*flt & VM_FAULT_SIGBUS) { 83 83 ret = -EFAULT; 84 84 goto bad_area; 85 85 } 86 86 BUG(); 87 87 } 88 - if (fault & VM_FAULT_MAJOR) 88 + if (*flt & VM_FAULT_MAJOR) 89 89 current->maj_flt++; 90 90 else 91 91 current->min_flt++; ··· 210 210 * In case of unhandled error report the problem to user space. 211 211 */ 212 212 if (!ret) { 213 - if (flt == VM_FAULT_MINOR) 214 - ctx->stats.min_flt++; 215 - else 213 + if (flt & VM_FAULT_MAJOR) 216 214 ctx->stats.maj_flt++; 215 + else 216 + ctx->stats.min_flt++; 217 217 if (ctx->state == SPU_STATE_RUNNABLE) { 218 - if (flt == VM_FAULT_MINOR) 219 - ctx->spu->stats.min_flt++; 220 - else 218 + if (flt & VM_FAULT_MAJOR) 221 219 ctx->spu->stats.maj_flt++; 220 + else 221 + ctx->spu->stats.min_flt++; 222 222 } 223 223 224 224 if (ctx->spu)