diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-25 23:12:10 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-14 09:21:15 -0500 |
commit | d64008a8f30e0b381b292788ec6f3ee509b3bb40 (patch) | |
tree | 176340cd7acbaf715abe91645b553db46f18b679 /include/linux/compat.h | |
parent | e9b04b5b67ec628a5e9a312e14b6864f8f73ba12 (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 'include/linux/compat.h')
-rw-r--r-- | include/linux/compat.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h index 8de903587fb9..de095b0462a7 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
@@ -68,7 +68,6 @@ | |||
68 | #ifndef compat_user_stack_pointer | 68 | #ifndef compat_user_stack_pointer |
69 | #define compat_user_stack_pointer() current_user_stack_pointer() | 69 | #define compat_user_stack_pointer() current_user_stack_pointer() |
70 | #endif | 70 | #endif |
71 | #ifdef CONFIG_GENERIC_SIGALTSTACK | ||
72 | #ifndef compat_sigaltstack /* we'll need that for MIPS */ | 71 | #ifndef compat_sigaltstack /* we'll need that for MIPS */ |
73 | typedef struct compat_sigaltstack { | 72 | typedef struct compat_sigaltstack { |
74 | compat_uptr_t ss_sp; | 73 | compat_uptr_t ss_sp; |
@@ -76,7 +75,6 @@ typedef struct compat_sigaltstack { | |||
76 | compat_size_t ss_size; | 75 | compat_size_t ss_size; |
77 | } compat_stack_t; | 76 | } compat_stack_t; |
78 | #endif | 77 | #endif |
79 | #endif | ||
80 | 78 | ||
81 | #define compat_jiffies_to_clock_t(x) \ | 79 | #define compat_jiffies_to_clock_t(x) \ |
82 | (((unsigned long)(x) * COMPAT_USER_HZ) / HZ) | 80 | (((unsigned long)(x) * COMPAT_USER_HZ) / HZ) |
@@ -142,7 +140,6 @@ typedef struct { | |||
142 | compat_sigset_word sig[_COMPAT_NSIG_WORDS]; | 140 | compat_sigset_word sig[_COMPAT_NSIG_WORDS]; |
143 | } compat_sigset_t; | 141 | } compat_sigset_t; |
144 | 142 | ||
145 | #ifdef CONFIG_GENERIC_COMPAT_RT_SIGACTION | ||
146 | struct compat_sigaction { | 143 | struct compat_sigaction { |
147 | #ifndef __ARCH_HAS_ODD_SIGACTION | 144 | #ifndef __ARCH_HAS_ODD_SIGACTION |
148 | compat_uptr_t sa_handler; | 145 | compat_uptr_t sa_handler; |
@@ -156,7 +153,6 @@ struct compat_sigaction { | |||
156 | #endif | 153 | #endif |
157 | compat_sigset_t sa_mask __packed; | 154 | compat_sigset_t sa_mask __packed; |
158 | }; | 155 | }; |
159 | #endif | ||
160 | 156 | ||
161 | /* | 157 | /* |
162 | * These functions operate strictly on struct compat_time* | 158 | * These functions operate strictly on struct compat_time* |
@@ -623,27 +619,19 @@ asmlinkage long compat_sys_rt_sigtimedwait(compat_sigset_t __user *uthese, | |||
623 | struct compat_timespec __user *uts, compat_size_t sigsetsize); | 619 | struct compat_timespec __user *uts, compat_size_t sigsetsize); |
624 | asmlinkage long compat_sys_rt_sigsuspend(compat_sigset_t __user *unewset, | 620 | asmlinkage long compat_sys_rt_sigsuspend(compat_sigset_t __user *unewset, |
625 | compat_size_t sigsetsize); | 621 | compat_size_t sigsetsize); |
626 | #ifdef CONFIG_GENERIC_COMPAT_RT_SIGPROCMASK | ||
627 | asmlinkage long compat_sys_rt_sigprocmask(int how, compat_sigset_t __user *set, | 622 | asmlinkage long compat_sys_rt_sigprocmask(int how, compat_sigset_t __user *set, |
628 | compat_sigset_t __user *oset, | 623 | compat_sigset_t __user *oset, |
629 | compat_size_t sigsetsize); | 624 | compat_size_t sigsetsize); |
630 | #endif | ||
631 | #ifdef CONFIG_GENERIC_COMPAT_RT_SIGPENDING | ||
632 | asmlinkage long compat_sys_rt_sigpending(compat_sigset_t __user *uset, | 625 | asmlinkage long compat_sys_rt_sigpending(compat_sigset_t __user *uset, |
633 | compat_size_t sigsetsize); | 626 | compat_size_t sigsetsize); |
634 | #endif | ||
635 | #ifndef CONFIG_ODD_RT_SIGACTION | 627 | #ifndef CONFIG_ODD_RT_SIGACTION |
636 | #ifdef CONFIG_GENERIC_COMPAT_RT_SIGACTION | ||
637 | asmlinkage long compat_sys_rt_sigaction(int, | 628 | asmlinkage long compat_sys_rt_sigaction(int, |
638 | const struct compat_sigaction __user *, | 629 | const struct compat_sigaction __user *, |
639 | struct compat_sigaction __user *, | 630 | struct compat_sigaction __user *, |
640 | compat_size_t); | 631 | compat_size_t); |
641 | #endif | 632 | #endif |
642 | #endif | ||
643 | #ifdef CONFIG_GENERIC_COMPAT_RT_SIGQUEUEINFO | ||
644 | asmlinkage long compat_sys_rt_sigqueueinfo(compat_pid_t pid, int sig, | 633 | asmlinkage long compat_sys_rt_sigqueueinfo(compat_pid_t pid, int sig, |
645 | struct compat_siginfo __user *uinfo); | 634 | struct compat_siginfo __user *uinfo); |
646 | #endif | ||
647 | asmlinkage long compat_sys_sysinfo(struct compat_sysinfo __user *info); | 635 | asmlinkage long compat_sys_sysinfo(struct compat_sysinfo __user *info); |
648 | asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd, | 636 | asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd, |
649 | unsigned long arg); | 637 | unsigned long arg); |
@@ -694,13 +682,11 @@ asmlinkage ssize_t compat_sys_process_vm_writev(compat_pid_t pid, | |||
694 | 682 | ||
695 | asmlinkage long compat_sys_sendfile(int out_fd, int in_fd, | 683 | asmlinkage long compat_sys_sendfile(int out_fd, int in_fd, |
696 | compat_off_t __user *offset, compat_size_t count); | 684 | compat_off_t __user *offset, compat_size_t count); |
697 | #ifdef CONFIG_GENERIC_SIGALTSTACK | ||
698 | asmlinkage long compat_sys_sigaltstack(const compat_stack_t __user *uss_ptr, | 685 | asmlinkage long compat_sys_sigaltstack(const compat_stack_t __user *uss_ptr, |
699 | compat_stack_t __user *uoss_ptr); | 686 | compat_stack_t __user *uoss_ptr); |
700 | 687 | ||
701 | int compat_restore_altstack(const compat_stack_t __user *uss); | 688 | int compat_restore_altstack(const compat_stack_t __user *uss); |
702 | int __compat_save_altstack(compat_stack_t __user *, unsigned long); | 689 | int __compat_save_altstack(compat_stack_t __user *, unsigned long); |
703 | #endif | ||
704 | 690 | ||
705 | asmlinkage long compat_sys_sched_rr_get_interval(compat_pid_t pid, | 691 | asmlinkage long compat_sys_sched_rr_get_interval(compat_pid_t pid, |
706 | struct compat_timespec __user *interval); | 692 | struct compat_timespec __user *interval); |