mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Handling unhandled BOOT_UNDECIDED as normal reboot
@ 2010-01-25 22:02 Himanshu Chauhan
  0 siblings, 0 replies; only message in thread
From: Himanshu Chauhan @ 2010-01-25 22:02 UTC (permalink / raw)
  To: Linux Kernel; +Cc: greg, Himanshu Chauhan

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-25 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-25 22:02 [PATCH] Handling unhandled BOOT_UNDECIDED as normal reboot Himanshu Chauhan

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®