diff options
author | Eric W. Biederman <ebiederm@aristanetworks.com> | 2009-05-20 18:52:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-20 18:52:40 -0400 |
commit | 288ddad5b095ff65812cf1060c67d23c07568871 (patch) | |
tree | 0dd44134615d92b6187afe95e7ddca1cc2b9a5cb /arch | |
parent | 97bc54152e3a91dd2dc297e8a084c05e93527e60 (diff) |
syscall: Sort out syscall_restart name clash.
Stephen Rothwell <sfr@canb.auug.org.au> writes:
> Today's linux-next build of at least some av32 and arm configs failed like this:
>
> arch/avr32/kernel/signal.c:216: error: conflicting types for 'restart_syscall'
> include/linux/sched.h:2184: error: previous definition of 'restart_syscall' was here
>
> Caused by commit 690cc3ffe33ac4a2857583c22d4c6244ae11684d ("syscall:
> Implement a convinience function restart_syscall") from the net tree.
Grrr. Some days it feels like all of the good names are already taken.
Let's just rename the two static users in arm and avr32 to get this
sorted out.
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/signal.c | 6 | ||||
-rw-r--r-- | arch/avr32/kernel/signal.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 80b8b5c7e07a..614c9f642878 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c | |||
@@ -532,7 +532,7 @@ setup_rt_frame(int usig, struct k_sigaction *ka, siginfo_t *info, | |||
532 | return err; | 532 | return err; |
533 | } | 533 | } |
534 | 534 | ||
535 | static inline void restart_syscall(struct pt_regs *regs) | 535 | static inline void setup_syscall_restart(struct pt_regs *regs) |
536 | { | 536 | { |
537 | regs->ARM_r0 = regs->ARM_ORIG_r0; | 537 | regs->ARM_r0 = regs->ARM_ORIG_r0; |
538 | regs->ARM_pc -= thumb_mode(regs) ? 2 : 4; | 538 | regs->ARM_pc -= thumb_mode(regs) ? 2 : 4; |
@@ -567,7 +567,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, | |||
567 | } | 567 | } |
568 | /* fallthrough */ | 568 | /* fallthrough */ |
569 | case -ERESTARTNOINTR: | 569 | case -ERESTARTNOINTR: |
570 | restart_syscall(regs); | 570 | setup_syscall_restart(regs); |
571 | } | 571 | } |
572 | } | 572 | } |
573 | 573 | ||
@@ -691,7 +691,7 @@ static int do_signal(sigset_t *oldset, struct pt_regs *regs, int syscall) | |||
691 | if (regs->ARM_r0 == -ERESTARTNOHAND || | 691 | if (regs->ARM_r0 == -ERESTARTNOHAND || |
692 | regs->ARM_r0 == -ERESTARTSYS || | 692 | regs->ARM_r0 == -ERESTARTSYS || |
693 | regs->ARM_r0 == -ERESTARTNOINTR) { | 693 | regs->ARM_r0 == -ERESTARTNOINTR) { |
694 | restart_syscall(regs); | 694 | setup_syscall_restart(regs); |
695 | } | 695 | } |
696 | } | 696 | } |
697 | single_step_set(current); | 697 | single_step_set(current); |
diff --git a/arch/avr32/kernel/signal.c b/arch/avr32/kernel/signal.c index 803d7be0938f..27227561bad6 100644 --- a/arch/avr32/kernel/signal.c +++ b/arch/avr32/kernel/signal.c | |||
@@ -212,7 +212,7 @@ out: | |||
212 | return err; | 212 | return err; |
213 | } | 213 | } |
214 | 214 | ||
215 | static inline void restart_syscall(struct pt_regs *regs) | 215 | static inline void setup_syscall_restart(struct pt_regs *regs) |
216 | { | 216 | { |
217 | if (regs->r12 == -ERESTART_RESTARTBLOCK) | 217 | if (regs->r12 == -ERESTART_RESTARTBLOCK) |
218 | regs->r8 = __NR_restart_syscall; | 218 | regs->r8 = __NR_restart_syscall; |
@@ -296,7 +296,7 @@ int do_signal(struct pt_regs *regs, sigset_t *oldset, int syscall) | |||
296 | } | 296 | } |
297 | /* fall through */ | 297 | /* fall through */ |
298 | case -ERESTARTNOINTR: | 298 | case -ERESTARTNOINTR: |
299 | restart_syscall(regs); | 299 | setup_syscall_restart(regs); |
300 | } | 300 | } |
301 | } | 301 | } |
302 | 302 | ||