Skip to contentSkip to conversation

fix minor sparse warnings

PATCH New Atsushi Nemoto 1 participant 1 message Feb 1, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix minor sparse warnings

arch/mips/kernel/signal.c +1 -1
index e8e43bd..aaec478 100644
@@ -340,7 +340,7 @@ int setup_rt_frame(struct k_sigaction * 
 
 	/* Create the ucontext.  */
 	err |= __put_user(0, &frame->rs_uc.uc_flags);
-	err |= __put_user(0, &frame->rs_uc.uc_link);
+	err |= __put_user(NULL, &frame->rs_uc.uc_link);
 	err |= __put_user((void *)current->sas_ss_sp,
 	                  &frame->rs_uc.uc_stack.ss_sp);
 	err |= __put_user(sas_ss_flags(regs->regs[29]),
arch/mips/kernel/signal32.c +1 -1
index 7c2241e..136260c 100644
@@ -456,7 +456,7 @@ int copy_siginfo_to_user32(compat_siginf
 			err |= __put_user(from->si_uid, &to->si_uid);
 			break;
 		case __SI_FAULT >> 16:
-			err |= __put_user((long)from->si_addr, &to->si_addr);
+			err |= __put_user((unsigned long)from->si_addr, &to->si_addr);
 			break;
 		case __SI_POLL >> 16:
 			err |= __put_user(from->si_band, &to->si_band);
arch/mips/kernel/signal_n32.c +2 -0
index 3d2f8e3..9156863 100644
@@ -48,6 +48,8 @@
 #define __NR_N32_rt_sigreturn		6211
 #define __NR_N32_restart_syscall	6214
 
+#define DEBUG_SIG 0
+
 #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
 
 /* IRIX compatible stack_t  */