aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/signal.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-11-25 23:12:10 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2013-02-14 09:21:15 -0500
commitd64008a8f30e0b381b292788ec6f3ee509b3bb40 (patch)
tree176340cd7acbaf715abe91645b553db46f18b679 /kernel/signal.c
parente9b04b5b67ec628a5e9a312e14b6864f8f73ba12 (diff)
burying unused conditionals
__ARCH_WANT_SYS_RT_SIGACTION, __ARCH_WANT_SYS_RT_SIGSUSPEND, __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND, __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL - not used anymore CONFIG_GENERIC_{SIGALTSTACK,COMPAT_RT_SIG{ACTION,QUEUEINFO,PENDING,PROCMASK}} - can be assumed always set.
Diffstat (limited to 'kernel/signal.c')
-rw-r--r--kernel/signal.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 6919050c8156..2b8282bb487c 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -2623,7 +2623,6 @@ SYSCALL_DEFINE4(rt_sigprocmask, int, how, sigset_t __user *, nset,
2623} 2623}
2624 2624
2625#ifdef CONFIG_COMPAT 2625#ifdef CONFIG_COMPAT
2626#ifdef CONFIG_GENERIC_COMPAT_RT_SIGPROCMASK
2627COMPAT_SYSCALL_DEFINE4(rt_sigprocmask, int, how, compat_sigset_t __user *, nset, 2626COMPAT_SYSCALL_DEFINE4(rt_sigprocmask, int, how, compat_sigset_t __user *, nset,
2628 compat_sigset_t __user *, oset, compat_size_t, sigsetsize) 2627 compat_sigset_t __user *, oset, compat_size_t, sigsetsize)
2629{ 2628{
@@ -2661,7 +2660,6 @@ COMPAT_SYSCALL_DEFINE4(rt_sigprocmask, int, how, compat_sigset_t __user *, nset,
2661#endif 2660#endif
2662} 2661}
2663#endif 2662#endif
2664#endif
2665 2663
2666static int do_sigpending(void *set, unsigned long sigsetsize) 2664static int do_sigpending(void *set, unsigned long sigsetsize)
2667{ 2665{
@@ -2694,7 +2692,6 @@ SYSCALL_DEFINE2(rt_sigpending, sigset_t __user *, uset, size_t, sigsetsize)
2694} 2692}
2695 2693
2696#ifdef CONFIG_COMPAT 2694#ifdef CONFIG_COMPAT
2697#ifdef CONFIG_GENERIC_COMPAT_RT_SIGPENDING
2698COMPAT_SYSCALL_DEFINE2(rt_sigpending, compat_sigset_t __user *, uset, 2695COMPAT_SYSCALL_DEFINE2(rt_sigpending, compat_sigset_t __user *, uset,
2699 compat_size_t, sigsetsize) 2696 compat_size_t, sigsetsize)
2700{ 2697{
@@ -2714,7 +2711,6 @@ COMPAT_SYSCALL_DEFINE2(rt_sigpending, compat_sigset_t __user *, uset,
2714#endif 2711#endif
2715} 2712}
2716#endif 2713#endif
2717#endif
2718 2714
2719#ifndef HAVE_ARCH_COPY_SIGINFO_TO_USER 2715#ifndef HAVE_ARCH_COPY_SIGINFO_TO_USER
2720 2716
@@ -3024,7 +3020,6 @@ SYSCALL_DEFINE3(rt_sigqueueinfo, pid_t, pid, int, sig,
3024} 3020}
3025 3021
3026#ifdef CONFIG_COMPAT 3022#ifdef CONFIG_COMPAT
3027#ifdef CONFIG_GENERIC_COMPAT_RT_SIGQUEUEINFO
3028COMPAT_SYSCALL_DEFINE3(rt_sigqueueinfo, 3023COMPAT_SYSCALL_DEFINE3(rt_sigqueueinfo,
3029 compat_pid_t, pid, 3024 compat_pid_t, pid,
3030 int, sig, 3025 int, sig,
@@ -3037,7 +3032,6 @@ COMPAT_SYSCALL_DEFINE3(rt_sigqueueinfo,
3037 return do_rt_sigqueueinfo(pid, sig, &info); 3032 return do_rt_sigqueueinfo(pid, sig, &info);
3038} 3033}
3039#endif 3034#endif
3040#endif
3041 3035
3042static int do_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, siginfo_t *info) 3036static int do_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, siginfo_t *info)
3043{ 3037{
@@ -3194,12 +3188,10 @@ do_sigaltstack (const stack_t __user *uss, stack_t __user *uoss, unsigned long s
3194out: 3188out:
3195 return error; 3189 return error;
3196} 3190}
3197#ifdef CONFIG_GENERIC_SIGALTSTACK
3198SYSCALL_DEFINE2(sigaltstack,const stack_t __user *,uss, stack_t __user *,uoss) 3191SYSCALL_DEFINE2(sigaltstack,const stack_t __user *,uss, stack_t __user *,uoss)
3199{ 3192{
3200 return do_sigaltstack(uss, uoss, current_user_stack_pointer()); 3193 return do_sigaltstack(uss, uoss, current_user_stack_pointer());
3201} 3194}
3202#endif
3203 3195
3204int restore_altstack(const stack_t __user *uss) 3196int restore_altstack(const stack_t __user *uss)
3205{ 3197{
@@ -3217,7 +3209,6 @@ int __save_altstack(stack_t __user *uss, unsigned long sp)
3217} 3209}
3218 3210
3219#ifdef CONFIG_COMPAT 3211#ifdef CONFIG_COMPAT
3220#ifdef CONFIG_GENERIC_SIGALTSTACK
3221COMPAT_SYSCALL_DEFINE2(sigaltstack, 3212COMPAT_SYSCALL_DEFINE2(sigaltstack,
3222 const compat_stack_t __user *, uss_ptr, 3213 const compat_stack_t __user *, uss_ptr,
3223 compat_stack_t __user *, uoss_ptr) 3214 compat_stack_t __user *, uoss_ptr)
@@ -3267,7 +3258,6 @@ int __compat_save_altstack(compat_stack_t __user *uss, unsigned long sp)
3267 __put_user(t->sas_ss_size, &uss->ss_size); 3258 __put_user(t->sas_ss_size, &uss->ss_size);
3268} 3259}
3269#endif 3260#endif
3270#endif
3271 3261
3272#ifdef __ARCH_WANT_SYS_SIGPENDING 3262#ifdef __ARCH_WANT_SYS_SIGPENDING
3273 3263
@@ -3368,7 +3358,6 @@ out:
3368 return ret; 3358 return ret;
3369} 3359}
3370#ifdef CONFIG_COMPAT 3360#ifdef CONFIG_COMPAT
3371#ifdef CONFIG_GENERIC_COMPAT_RT_SIGACTION
3372COMPAT_SYSCALL_DEFINE4(rt_sigaction, int, sig, 3361COMPAT_SYSCALL_DEFINE4(rt_sigaction, int, sig,
3373 const struct compat_sigaction __user *, act, 3362 const struct compat_sigaction __user *, act,
3374 struct compat_sigaction __user *, oact, 3363 struct compat_sigaction __user *, oact,
@@ -3415,7 +3404,6 @@ COMPAT_SYSCALL_DEFINE4(rt_sigaction, int, sig,
3415 return ret; 3404 return ret;
3416} 3405}
3417#endif 3406#endif
3418#endif
3419#endif /* !CONFIG_ODD_RT_SIGACTION */ 3407#endif /* !CONFIG_ODD_RT_SIGACTION */
3420 3408
3421#ifdef CONFIG_OLD_SIGACTION 3409#ifdef CONFIG_OLD_SIGACTION