2010-11-01 08:21:41

by Hans-Christian Egtvedt

[permalink] [raw]
Subject: Re: [PATCH 2/6] avr32: get rid of useless args in signal.c before other work there

On Tue, 2010-09-28 at 03:57 +0100, Al Viro wrote:
> Signed-off-by: Al Viro <[email protected]>

<snipp>

> @@ -261,11 +261,12 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info,
> * doesn't want to handle. Thus you cannot kill init even with a
> * SIGKILL even by mistake.
> */
> -int do_signal(struct pt_regs *regs, sigset_t *oldset, int syscall)
> +static void do_signal(struct pt_regs *regs, int syscall)
> {
> siginfo_t info;
> int signr;
> struct k_sigaction ka;
> + sigset_t *oldset;

Should be initialized as it is checked in the else if block further
below.

<snipp>

--
Hans-Christian Egtvedt


2010-11-01 08:02:09

by Al Viro

[permalink] [raw]
Subject: Re: [PATCH 2/6] avr32: get rid of useless args in signal.c before other work there

On Mon, Nov 01, 2010 at 08:58:29AM +0100, Hans-Christian Egtvedt wrote:
> On Tue, 2010-09-28 at 03:57 +0100, Al Viro wrote:
> > Signed-off-by: Al Viro <[email protected]>
>
> <snipp>
>
> > @@ -261,11 +261,12 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info,
> > * doesn't want to handle. Thus you cannot kill init even with a
> > * SIGKILL even by mistake.
> > */
> > -int do_signal(struct pt_regs *regs, sigset_t *oldset, int syscall)
> > +static void do_signal(struct pt_regs *regs, int syscall)
> > {
> > siginfo_t info;
> > int signr;
> > struct k_sigaction ka;
> > + sigset_t *oldset;
>
> Should be initialized as it is checked in the else if block further
> below.

That else if should be simply else...

2010-11-01 08:09:24

by Hans-Christian Egtvedt

[permalink] [raw]
Subject: Re: [PATCH 2/6] avr32: get rid of useless args in signal.c before other work there

On Mon, 2010-11-01 at 08:02 +0000, Al Viro wrote:
> On Mon, Nov 01, 2010 at 08:58:29AM +0100, Hans-Christian Egtvedt wrote:
> > On Tue, 2010-09-28 at 03:57 +0100, Al Viro wrote:
> > > Signed-off-by: Al Viro <[email protected]>
> > > @@ -261,11 +261,12 @@ handle_signal(unsigned long sig, struct k_sigaction *ka, siginfo_t *info,
> > > * doesn't want to handle. Thus you cannot kill init even with a
> > > * SIGKILL even by mistake.
> > > */
> > > -int do_signal(struct pt_regs *regs, sigset_t *oldset, int syscall)
> > > +static void do_signal(struct pt_regs *regs, int syscall)
> > > {
> > > siginfo_t info;
> > > int signr;
> > > struct k_sigaction ka;
> > > + sigset_t *oldset;
> >
> > Should be initialized as it is checked in the else if block further
> > below.
>
> That else if should be simply else...

Ah, that made a lot more sense. I'm still on my first cup of coffee
brushing dust of your series.

--
Hans-Christian Egtvedt