Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
[SCSI] esp: Fix build.
[SPARC]: Fix SA_STATIC_ALLOC value.
[SPARC64]: Explicitly print return PC when the kernel fault PC is bogus.

+8 -9
+3
arch/sparc64/mm/fault.c
··· 19 #include <linux/init.h> 20 #include <linux/interrupt.h> 21 #include <linux/kprobes.h> 22 23 #include <asm/page.h> 24 #include <asm/pgtable.h> ··· 133 134 printk(KERN_CRIT "OOPS: Bogus kernel PC [%016lx] in fault handler\n", 135 regs->tpc); 136 printk(KERN_CRIT "OOPS: Fault was to vaddr[%lx]\n", vaddr); 137 __asm__("mov %%sp, %0" : "=r" (ksp)); 138 show_stack(current, ksp);
··· 19 #include <linux/init.h> 20 #include <linux/interrupt.h> 21 #include <linux/kprobes.h> 22 + #include <linux/kallsyms.h> 23 24 #include <asm/page.h> 25 #include <asm/pgtable.h> ··· 132 133 printk(KERN_CRIT "OOPS: Bogus kernel PC [%016lx] in fault handler\n", 134 regs->tpc); 135 + printk(KERN_CRIT "OOPS: RPC [%016lx]\n", regs->u_regs[15]); 136 + print_symbol("RPC: <%s>\n", regs->u_regs[15]); 137 printk(KERN_CRIT "OOPS: Fault was to vaddr[%lx]\n", vaddr); 138 __asm__("mov %%sp, %0" : "=r" (ksp)); 139 show_stack(current, ksp);
+4 -8
drivers/scsi/esp.c
··· 2754 */ 2755 static int esp_should_clear_sync(struct scsi_cmnd *sp) 2756 { 2757 - u8 cmd1 = sp->cmnd[0]; 2758 - u8 cmd2 = sp->data_cmnd[0]; 2759 2760 /* These cases are for spinning up a disk and 2761 * waiting for that spinup to complete. 2762 */ 2763 - if (cmd1 == START_STOP || 2764 - cmd2 == START_STOP) 2765 return 0; 2766 2767 - if (cmd1 == TEST_UNIT_READY || 2768 - cmd2 == TEST_UNIT_READY) 2769 return 0; 2770 2771 /* One more special case for SCSI tape drives, ··· 2770 * completion of a rewind or tape load operation. 2771 */ 2772 if (sp->device->type == TYPE_TAPE) { 2773 - if (cmd1 == MODE_SENSE || 2774 - cmd2 == MODE_SENSE) 2775 return 0; 2776 } 2777
··· 2754 */ 2755 static int esp_should_clear_sync(struct scsi_cmnd *sp) 2756 { 2757 + u8 cmd = sp->cmnd[0]; 2758 2759 /* These cases are for spinning up a disk and 2760 * waiting for that spinup to complete. 2761 */ 2762 + if (cmd == START_STOP) 2763 return 0; 2764 2765 + if (cmd == TEST_UNIT_READY) 2766 return 0; 2767 2768 /* One more special case for SCSI tape drives, ··· 2773 * completion of a rewind or tape load operation. 2774 */ 2775 if (sp->device->type == TYPE_TAPE) { 2776 + if (cmd == MODE_SENSE) 2777 return 0; 2778 } 2779
+1 -1
include/asm-sparc/signal.h
··· 168 * statically allocated data.. which is NOT GOOD. 169 * 170 */ 171 - #define SA_STATIC_ALLOC 0x80 172 #endif 173 174 #include <asm-generic/signal.h>
··· 168 * statically allocated data.. which is NOT GOOD. 169 * 170 */ 171 + #define SA_STATIC_ALLOC 0x8000 172 #endif 173 174 #include <asm-generic/signal.h>