diff options
author | Matt Fleming <matt@console-pimps.org> | 2009-06-18 05:03:33 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-06-18 05:25:21 -0400 |
commit | 944557116908cbe835be41bfbd39d9706da9fd71 (patch) | |
tree | 0e39069bd1bf34c7491ad7577840e99eca337089 /arch | |
parent | 99d921c2ff28c6396c5fa9a5360b3005bc6abba7 (diff) |
sh: Fix declaration of __kernel_sigreturn and __kernel_rt_sigreturn
GCC 4.5.0 complains about the declaration of variables
__kernel_sigreturn and __kernel_rt_sigreturn because they have type
void. Correctly declare these symbols as functions to fix the
following error,
arch/sh/kernel/signal_32.c: In function 'setup_frame':
arch/sh/kernel/signal_32.c:368:14: error: taking address of expression of type 'void'
arch/sh/kernel/signal_32.c: In function 'setup_rt_frame':
arch/sh/kernel/signal_32.c:452:14: error: taking address of expression of type 'void'
make[1]: *** [arch/sh/kernel/signal_32.o] Error 1
make: *** [arch/sh/kernel] Error 2
Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/signal_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/signal_32.c b/arch/sh/kernel/signal_32.c index 17784e19ae34..b5afbec1db59 100644 --- a/arch/sh/kernel/signal_32.c +++ b/arch/sh/kernel/signal_32.c | |||
@@ -332,8 +332,8 @@ get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size) | |||
332 | 332 | ||
333 | /* These symbols are defined with the addresses in the vsyscall page. | 333 | /* These symbols are defined with the addresses in the vsyscall page. |
334 | See vsyscall-trapa.S. */ | 334 | See vsyscall-trapa.S. */ |
335 | extern void __user __kernel_sigreturn; | 335 | extern void __kernel_sigreturn(void); |
336 | extern void __user __kernel_rt_sigreturn; | 336 | extern void __kernel_rt_sigreturn(void); |
337 | 337 | ||
338 | static int setup_frame(int sig, struct k_sigaction *ka, | 338 | static int setup_frame(int sig, struct k_sigaction *ka, |
339 | sigset_t *set, struct pt_regs *regs) | 339 | sigset_t *set, struct pt_regs *regs) |