Skip to contentSkip to conversation

Handling unhandled BOOT_UNDECIDED as normal reboot

PATCH New Himanshu Chauhan 1 participant 1 message Jan 25, 2010 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Handling unhandled BOOT_UNDECIDED as normal reboot

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

---
 arch/x86/kernel/reboot.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/x86/kernel/reboot.c +1 -0
index 5e78483..69c1c18 100644
@@ -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 */
 
Signature · 1 line
1.6.3.3