* [PATCH 2.5]: move do_signal32 declaration upwards
@ 2003-03-22 21:20 Guido Guenther
2003-03-24 21:59 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Guido Guenther @ 2003-03-22 21:20 UTC (permalink / raw)
To: ralf; +Cc: linux-mips
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
Hi,
do_signal32 is needed in do_signal but declared after that function
which makes this an implicit declaration. Moving the declaration upward
fixes the warning. Patch attached, please apply.
-- Guido
[-- Attachment #2: do_signal32.diff --]
[-- Type: text/plain, Size: 896 bytes --]
Index: arch/mips64/kernel/signal.c
===================================================================
RCS file: /home/cvs/linux/arch/mips64/kernel/signal.c,v
retrieving revision 1.37
diff -u -p -r1.37 signal.c
--- arch/mips64/kernel/signal.c 6 Mar 2003 21:30:48 -0000 1.37
+++ arch/mips64/kernel/signal.c 22 Mar 2003 21:18:45 -0000
@@ -341,6 +341,10 @@ static inline void handle_signal(unsigne
}
}
+
+extern int do_signal32(sigset_t *oldset, struct pt_regs *regs);
+extern int do_irix_signal(sigset_t *oldset, struct pt_regs *regs);
+
asmlinkage int do_signal(sigset_t *oldset, struct pt_regs *regs)
{
siginfo_t info;
@@ -377,8 +381,6 @@ asmlinkage int do_signal(sigset_t *oldse
return 0;
}
-extern int do_irix_signal(sigset_t *oldset, struct pt_regs *regs);
-extern int do_signal32(sigset_t *oldset, struct pt_regs *regs);
/*
* notification of userspace execution resumption
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.5]: move do_signal32 declaration upwards
2003-03-22 21:20 [PATCH 2.5]: move do_signal32 declaration upwards Guido Guenther
@ 2003-03-24 21:59 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2003-03-24 21:59 UTC (permalink / raw)
To: Guido Guenther, linux-mips
On Sat, Mar 22, 2003 at 10:20:39PM +0100, Guido Guenther wrote:
> do_signal32 is needed in do_signal but declared after that function
> which makes this an implicit declaration. Moving the declaration upward
> fixes the warning. Patch attached, please apply.
Thanks, applied,
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-24 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-22 21:20 [PATCH 2.5]: move do_signal32 declaration upwards Guido Guenther
2003-03-24 21:59 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox