lkml.org 
[lkml]   [2010]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Handling unhandled BOOT_UNDECIDED as normal reboot
Date
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


\
 
 \ /
  Last update: 2010-01-25 23:13    [W:0.032 / U:12.768 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site