Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebieder...
[sfrench/cifs-2.6.git] / arch / openrisc / kernel / traps.c
index e859bfb118a693ee47ee070aba84812aace04b07..932a8ec2b520eefd224e871e85967033e3eaa5aa 100644 (file)
@@ -244,7 +244,7 @@ void __init trap_init(void)
 
 asmlinkage void do_trap(struct pt_regs *regs, unsigned long address)
 {
-       force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)address, current);
+       force_sig_fault(SIGTRAP, TRAP_TRACE, (void __user *)address);
 
        regs->pc += 4;
 }
@@ -253,7 +253,7 @@ asmlinkage void do_unaligned_access(struct pt_regs *regs, unsigned long address)
 {
        if (user_mode(regs)) {
                /* Send a SIGBUS */
-               force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *)address, current);
+               force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *)address);
        } else {
                printk("KERNEL: Unaligned Access 0x%.8lx\n", address);
                show_registers(regs);
@@ -266,7 +266,7 @@ asmlinkage void do_bus_fault(struct pt_regs *regs, unsigned long address)
 {
        if (user_mode(regs)) {
                /* Send a SIGBUS */
-               force_sig_fault(SIGBUS, BUS_ADRERR, (void __user *)address, current);
+               force_sig_fault(SIGBUS, BUS_ADRERR, (void __user *)address);
        } else {                /* Kernel mode */
                printk("KERNEL: Bus error (SIGBUS) 0x%.8lx\n", address);
                show_registers(regs);
@@ -371,7 +371,7 @@ static inline void simulate_lwa(struct pt_regs *regs, unsigned long address,
 
        if (get_user(value, lwa_addr)) {
                if (user_mode(regs)) {
-                       force_sig(SIGSEGV, current);
+                       force_sig(SIGSEGV);
                        return;
                }
 
@@ -418,7 +418,7 @@ static inline void simulate_swa(struct pt_regs *regs, unsigned long address,
 
        if (put_user(regs->gpr[rb], vaddr)) {
                if (user_mode(regs)) {
-                       force_sig(SIGSEGV, current);
+                       force_sig(SIGSEGV);
                        return;
                }
 
@@ -461,7 +461,7 @@ asmlinkage void do_illegal_instruction(struct pt_regs *regs,
 
        if (user_mode(regs)) {
                /* Send a SIGILL */
-               force_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)address, current);
+               force_sig_fault(SIGILL, ILL_ILLOPC, (void __user *)address);
        } else {                /* Kernel mode */
                printk("KERNEL: Illegal instruction (SIGILL) 0x%.8lx\n",
                       address);