Re: [RFC PATCH v5 1/2] sysctl: Make neg_one a standard constraint
From: Ingo Molnar
Date: Sat Jan 25 2014 - 03:58:51 EST
* Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> * Aaron Tomlin <atomlin@xxxxxxxxxx> wrote:
>
> > Add neg_one to the list of standard constraints.
> >
> > Signed-off-by: Aaron Tomlin <atomlin@xxxxxxxxxx>
> > Acked-by: Rik van Riel <riel@xxxxxxxxxx>
> > Acked-by: David Rientjes <rientjes@xxxxxxxxxx>
> > ---
> > kernel/sysctl.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/kernel/sysctl.c b/kernel/sysctl.c
> > index 34a6047..dd531a6 100644
> > --- a/kernel/sysctl.c
> > +++ b/kernel/sysctl.c
> > @@ -122,6 +122,7 @@ extern int blk_iopoll_enabled;
> > static int sixty = 60;
> > #endif
> >
> > +static int neg_one = -1;
> > static int zero;
> > static int __maybe_unused one = 1;
> > static int __maybe_unused two = 2;
>
> So what happens if CONFIG_DETECT_HUNG_TASK is not defined and
> neg_one is unused? The compiler generates an unused variable
> warning.
Note, I fixed this up in your patch, no need to resend.
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/