Re: [PATCH] Arch: x86: process: Fix a compilation warning.

From: Borislav Petkov
Date: Mon May 30 2011 - 14:22:23 EST


On Mon, May 30, 2011 at 02:11:39PM -0400, Valdis.Kletnieks@xxxxxx wrote:
> On Mon, 30 May 2011 23:28:47 +0530, Rohit Yadav said:
>
> > Attached: New patch.
>
> Still needs help:
>
> > Remove unknown escape sequence \i in idle_setup.
>
> > - WARN_ONCE(1, "\idle=mwait\" will be removed in 2012\"\n");
> > + WARN_ONCE(1, "\"idle=mwait\" will be removed in 2012.\n");
>
> Changelog should say "Fix mismatched escaped quotes to resolve compiler warning" or
> similar. You should explain *what* the patch does (fix the quotes) and *why*
> (because it's broken and won't compile).

Yep, all valid points. Another one would be to search whether this got
already fixed before wasting effort:

http://git.kernel.org/tip/598e887d8b01655780c81cc86a9e7820ed091580

But it's not like there's nothing else that needs fixing in Linux. I'd
suggest using the new 'make W=' (do 'make help' for more info) build
option to build single objects and have gcc do more extensive checks.
Some of them actually are valid and need fixing.

Thanks.

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
--
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/