Skip to contentSkip to conversation

x86 idle: Fix mwait deprecation warning

PATCH In review Borislav Petkov 1 participant 2 messages May 30, 2011 x86

lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw

PATCH 1/1 x86 idle: Fix mwait deprecation warning

Fix

arch/x86/kernel/process.c:645:1: warning: unknown escape sequence '\i'

due to missing escape backslash.

---
 arch/x86/kernel/process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/process.c +1 -1
index 426a5b6..3d83a71 100644
@@ -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
Signature · 1 line
1.7.5.rc1.16.g9db1
author maintainer
#1 lore raw

[tip:x86/urgent] x86 idle: Fix mwait deprecation warning message

Commit-ID:  598e887d8b01655780c81cc86a9e7820ed091580
Gitweb:     http://git.kernel.org/tip/598e887d8b01655780c81cc86a9e7820ed091580
Author:     Borislav Petkov <[email protected]>
AuthorDate: Mon, 30 May 2011 11:38:06 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 30 May 2011 13:02:04 +0200

x86 idle: Fix mwait deprecation warning message

Fix:

arch/x86/kernel/process.c:645:1: warning: unknown escape sequence '\i'

due to missing escape backslash, introduced by this commit:

5d4c47e0195b: x86 idle: deprecate mwait_idle() and "idle=mwait" cmdline param

---
 arch/x86/kernel/process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/process.c +1 -1
index 426a5b6..3d83a71 100644
@@ -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