Re: [PATCH] Arch: x86: process: Fix a compilation warning.
From: Rohit Yadav
Date: Mon May 30 2011 - 13:59:14 EST
> 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.
From ab493b2af1d6fe6792b21fe01608ac2277cc79e7 Mon Sep 17 00:00:00 2001
From: Rohit Yadav <rohityadav89@xxxxxxxxx>
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@xxxxxxxxx>
---
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