Re: [PATCH] Eliminate thousands of warnings in WARN_ON with gcc 3.2 build

From: Andi Kleen
Date: Thu Apr 23 2009 - 11:19:56 EST


On Thu, Apr 23, 2009 at 08:07:51AM -0700, Arjan van de Ven wrote:
> Andi Kleen wrote:
> >On Thu, Apr 23, 2009 at 04:38:59PM +0200, Johannes Weiner wrote:
> >>>+void warn_slowpath_null(const char *file, int line)
> >>>+{
> >>>+ warn_slowpath_fmt(file, line, (const char *) { 0 });
> >>>+}
> >>>+EXPORT_SYMBOL(warn_slowpath_null);
> >>I would WTF here without knowing the warning. Can you add a comment?
> >>
> >>Otherwise, Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
> >
> >Ok version with comment.
>
> Makes sense if we plan to keep gcc 3.2 supported; if we plan to drop it
> then we shouldn't bother.

It helps even for other compilers for code size, at least it shrunk Johannes'
kernel by about 3k

> Acked-by: Arjan van de Ven <arjan@xxxxxxxxxxxxxxx>

Thanks.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/