diff options
author | Oleg Nesterov <oleg@redhat.com> | 2011-05-18 09:08:03 -0400 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2011-05-18 09:08:03 -0400 |
commit | b2b07e4fdbc51383cfc0ba5618c2ddf5c9d038f2 (patch) | |
tree | 4063a920ab78d8a8f387b5a6f111a3bb0818185f /include/linux/signal.h | |
parent | 2e4f7c7769a0b8b6b3e88b0436c6c634f146a4ef (diff) |
signal: trivial, fix the "timespec declared inside parameter list" warning
Fix the compile warning, do_sigtimedwait(struct timespec *) in signal.h
needs the forward declaration of timespec.
Reported-and-acked-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'include/linux/signal.h')
-rw-r--r-- | include/linux/signal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/signal.h b/include/linux/signal.h index 7e2526374fd7..a44e7f062238 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h | |||
@@ -234,6 +234,9 @@ static inline int valid_signal(unsigned long sig) | |||
234 | return sig <= _NSIG ? 1 : 0; | 234 | return sig <= _NSIG ? 1 : 0; |
235 | } | 235 | } |
236 | 236 | ||
237 | struct timespec; | ||
238 | struct pt_regs; | ||
239 | |||
237 | extern int next_signal(struct sigpending *pending, sigset_t *mask); | 240 | extern int next_signal(struct sigpending *pending, sigset_t *mask); |
238 | extern int do_send_sig_info(int sig, struct siginfo *info, | 241 | extern int do_send_sig_info(int sig, struct siginfo *info, |
239 | struct task_struct *p, bool group); | 242 | struct task_struct *p, bool group); |
@@ -248,7 +251,6 @@ extern int sigprocmask(int, sigset_t *, sigset_t *); | |||
248 | extern void set_current_blocked(const sigset_t *); | 251 | extern void set_current_blocked(const sigset_t *); |
249 | extern int show_unhandled_signals; | 252 | extern int show_unhandled_signals; |
250 | 253 | ||
251 | struct pt_regs; | ||
252 | extern int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka, struct pt_regs *regs, void *cookie); | 254 | extern int get_signal_to_deliver(siginfo_t *info, struct k_sigaction *return_ka, struct pt_regs *regs, void *cookie); |
253 | extern void exit_signals(struct task_struct *tsk); | 255 | extern void exit_signals(struct task_struct *tsk); |
254 | 256 | ||