From: Himanshu Chauhan <hschauhan@nulltrace.org>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: greg@kroah.com, Himanshu Chauhan <hschauhan@nulltrace.org>
Subject: [PATCH] Handling unhandled BOOT_UNDECIDED as normal reboot
Date: Tue, 26 Jan 2010 03:32:01 +0530 [thread overview]
Message-ID: <1264456921-13846-1-git-send-email-hschauhan@nulltrace.org> (raw)
Hi,
The follow patch fixes the following warning:
warning: enumeration value BOOT_UNDECIDED not handled in switch
by handling UNDECIDED type as a usual reboot (BOOT_KBD).
Is this okay?
Regards
Himanshu
Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
---
arch/x86/kernel/reboot.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index 5e78483..69c1c18 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -573,6 +573,7 @@ static void native_machine_emergency_restart(void)
for (;;) {
/* Could also try the reset bit in the Hammer NB */
switch (reboot_type) {
+ case BOOT_UNDECIDED: /* for unknown type usual reboot */
case BOOT_KBD:
mach_reboot_fixups(); /* for board specific fixups */
--
1.6.3.3
reply other threads:[~2010-01-25 22:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1264456921-13846-1-git-send-email-hschauhan@nulltrace.org \
--to=hschauhan@nulltrace.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®