* [PATCH] Arch: x86: process: Fix a compilation warning.
@ 2011-05-30 17:30 Rohit Yadav
2011-05-30 17:40 ` Valdis.Kletnieks
0 siblings, 1 reply; 10+ messages in thread
From: Rohit Yadav @ 2011-05-30 17:30 UTC (permalink / raw)
To: len.brown; +Cc: trenn, linux-kernel, Rohit Yadav
Remove unknown escape sequence \i in idle_setup.
Signed-off-by: Rohit Yadav <rohityadav89@gmail.com>
---
arch/x86/kernel/process.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 426a5b6..ed2da29 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -642,7 +642,7 @@ static int __init idle_setup(char *str)
boot_option_idle_override = IDLE_POLL;
} else if (!strcmp(str, "mwait")) {
boot_option_idle_override = IDLE_FORCE_MWAIT;
- WARN_ONCE(1, "\idle=mwait\" will be removed in 2012\"\n");
+ WARN_ONCE(1, "idle=mwait\" will be removed in 2012\"\n");
} else if (!strcmp(str, "halt")) {
/*
* When the boot option of idle=halt is added, halt is
--
1.7.4.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH] Arch: x86: process: Fix a compilation warning.
2011-05-30 17:30 [PATCH] Arch: x86: process: Fix a compilation warning Rohit Yadav
@ 2011-05-30 17:40 ` Valdis.Kletnieks
2011-05-30 17:58 ` Rohit Yadav
0 siblings, 1 reply; 10+ messages in thread
From: Valdis.Kletnieks @ 2011-05-30 17:40 UTC (permalink / raw)
To: Rohit Yadav; +Cc: len.brown, trenn, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 328 bytes --]
On Mon, 30 May 2011 23:00:29 +0530, Rohit Yadav said:
> 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");
I think what was *intended* was:
WARN_ONCE(1, "\"idle=mwait\" will be removed in 2012\n");
[-- Attachment #2: Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Arch: x86: process: Fix a compilation warning.
2011-05-30 17:40 ` Valdis.Kletnieks
@ 2011-05-30 17:58 ` Rohit Yadav
2011-05-30 18:11 ` Valdis.Kletnieks
0 siblings, 1 reply; 10+ messages in thread
From: Rohit Yadav @ 2011-05-30 17:58 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: len.brown, trenn, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
> I think what was *intended* was:
>
> WARN_ONCE(1, "\"idle=mwait\" will be removed in 2012\n");
Sure, anyway it was just an exercise, writing and submitting my first
Linux kernel patch.
Attached: New patch.
[-- Attachment #2: 0001-Arch-x86-process-Fix-a-compilation-warning.patch --]
[-- Type: text/x-patch, Size: 999 bytes --]
From ab493b2af1d6fe6792b21fe01608ac2277cc79e7 Mon Sep 17 00:00:00 2001
From: Rohit Yadav <rohityadav89@gmail.com>
Date: Mon, 30 May 2011 22:16:54 +0530
Subject: [PATCH] Arch: x86: process: Fix a compilation warning.
Remove unknown escape sequence \i in idle_setup.
Signed-off-by: Rohit Yadav <rohityadav89@gmail.com>
---
arch/x86/kernel/process.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 426a5b6..ed2da29 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -642,7 +642,7 @@ static int __init idle_setup(char *str)
boot_option_idle_override = IDLE_POLL;
} else if (!strcmp(str, "mwait")) {
boot_option_idle_override = IDLE_FORCE_MWAIT;
- WARN_ONCE(1, "\idle=mwait\" will be removed in 2012\"\n");
+ WARN_ONCE(1, "\"idle=mwait\" will be removed in 2012.\n");
} else if (!strcmp(str, "halt")) {
/*
* When the boot option of idle=halt is added, halt is
--
1.7.4.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH] Arch: x86: process: Fix a compilation warning.
2011-05-30 17:58 ` Rohit Yadav
@ 2011-05-30 18:11 ` Valdis.Kletnieks
2011-05-30 18:22 ` Borislav Petkov
0 siblings, 1 reply; 10+ messages in thread
From: Valdis.Kletnieks @ 2011-05-30 18:11 UTC (permalink / raw)
To: Rohit Yadav; +Cc: len.brown, trenn, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 482 bytes --]
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).
[-- Attachment #2: Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Arch: x86: process: Fix a compilation warning.
2011-05-30 18:11 ` Valdis.Kletnieks
@ 2011-05-30 18:22 ` Borislav Petkov
2011-05-30 19:52 ` Rohit Yadav
0 siblings, 1 reply; 10+ messages in thread
From: Borislav Petkov @ 2011-05-30 18:22 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: Rohit Yadav, len.brown, trenn, linux-kernel
On Mon, May 30, 2011 at 02:11:39PM -0400, Valdis.Kletnieks@vt.edu 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Arch: x86: process: Fix a compilation warning.
2011-05-30 18:22 ` Borislav Petkov
@ 2011-05-30 19:52 ` Rohit Yadav
2011-05-30 20:00 ` Randy Dunlap
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Rohit Yadav @ 2011-05-30 19:52 UTC (permalink / raw)
To: Borislav Petkov; +Cc: Valdis.Kletnieks, linux-kernel
> Yep, all valid points. Another one would be to search whether this got
> already fixed before wasting effort:
>
> http://git.kernel.org/tip/598e887d8b01655780c81cc86a9e7820ed091580
What is the best way to search if something got fixed? There are
plenty of repositories at git.kernel.org
I'm using this one:
http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Thanks.
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH] Arch: x86: process: Fix a compilation warning.
2011-05-30 19:52 ` Rohit Yadav
@ 2011-05-30 20:00 ` Randy Dunlap
2011-05-30 20:21 ` Borislav Petkov
2011-05-30 20:17 ` Borislav Petkov
2011-05-30 23:22 ` Jesper Juhl
2 siblings, 1 reply; 10+ messages in thread
From: Randy Dunlap @ 2011-05-30 20:00 UTC (permalink / raw)
To: Rohit Yadav; +Cc: Borislav Petkov, Valdis.Kletnieks, linux-kernel
On Tue, 31 May 2011 01:22:54 +0530 Rohit Yadav wrote:
> > Yep, all valid points. Another one would be to search whether this got
> > already fixed before wasting effort:
> >
> > http://git.kernel.org/tip/598e887d8b01655780c81cc86a9e7820ed091580
>
> What is the best way to search if something got fixed? There are
> plenty of repositories at git.kernel.org
> I'm using this one:
> http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
There are > 100 git trees, so just pick a few, like acpi, tip, arm, etc.,
and check them (I wouldn't expect anyone to check _all_ of them).
Or you could check mailing list archives: see here:
http://marc.info/?l=linux-kernel&m=130675351609350&w=2
It would be good IMO if -tip had a commits mailing list like
stable and -mm and mainline do.
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Arch: x86: process: Fix a compilation warning.
2011-05-30 19:52 ` Rohit Yadav
2011-05-30 20:00 ` Randy Dunlap
@ 2011-05-30 20:17 ` Borislav Petkov
2011-05-30 23:22 ` Jesper Juhl
2 siblings, 0 replies; 10+ messages in thread
From: Borislav Petkov @ 2011-05-30 20:17 UTC (permalink / raw)
To: Rohit Yadav
Cc: Borislav Petkov, Valdis.Kletnieks@vt.edu,
linux-kernel@vger.kernel.org
On Mon, May 30, 2011 at 03:52:54PM -0400, Rohit Yadav wrote:
> > Yep, all valid points. Another one would be to search whether this got
> > already fixed before wasting effort:
> >
> > http://git.kernel.org/tip/598e887d8b01655780c81cc86a9e7820ed091580
>
> What is the best way to search if something got fixed? There are
> plenty of repositories at git.kernel.org
> I'm using this one:
> http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Well, you either subscribe to lkml and search in your archives for it
or use your favourite search engine - they're usu. indexing lkml pretty
fast.
For example, google already indexed your mail I'm replying to and
returns it as the first result:
http://www.google.com/search?q=rohit+yadav+if+something+got+fixed
--
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Arch: x86: process: Fix a compilation warning.
2011-05-30 19:52 ` Rohit Yadav
2011-05-30 20:00 ` Randy Dunlap
2011-05-30 20:17 ` Borislav Petkov
@ 2011-05-30 23:22 ` Jesper Juhl
2 siblings, 0 replies; 10+ messages in thread
From: Jesper Juhl @ 2011-05-30 23:22 UTC (permalink / raw)
To: Rohit Yadav; +Cc: Borislav Petkov, Valdis.Kletnieks, linux-kernel
On Tue, 31 May 2011, Rohit Yadav wrote:
> > Yep, all valid points. Another one would be to search whether this got
> > already fixed before wasting effort:
> >
> > http://git.kernel.org/tip/598e887d8b01655780c81cc86a9e7820ed091580
>
> What is the best way to search if something got fixed? There are
> plenty of repositories at git.kernel.org
> I'm using this one:
> http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
>
Checking linux-next is usually a good idea:
http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=summary
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-05-30 23:30 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-30 17:30 [PATCH] Arch: x86: process: Fix a compilation warning Rohit Yadav
2011-05-30 17:40 ` Valdis.Kletnieks
2011-05-30 17:58 ` Rohit Yadav
2011-05-30 18:11 ` Valdis.Kletnieks
2011-05-30 18:22 ` Borislav Petkov
2011-05-30 19:52 ` Rohit Yadav
2011-05-30 20:00 ` Randy Dunlap
2011-05-30 20:21 ` Borislav Petkov
2011-05-30 20:17 ` Borislav Petkov
2011-05-30 23:22 ` Jesper Juhl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox