Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753812Ab0AYWLW (ORCPT ); Mon, 25 Jan 2010 17:11:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751600Ab0AYWLM (ORCPT ); Mon, 25 Jan 2010 17:11:12 -0500 Received: from mail-fx0-f220.google.com ([209.85.220.220]:40784 "EHLO mail-fx0-f220.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589Ab0AYWLK (ORCPT ); Mon, 25 Jan 2010 17:11:10 -0500 From: Himanshu Chauhan To: Linux Kernel Cc: greg@kroah.com, Himanshu Chauhan Subject: [PATCH] Handling unhandled BOOT_UNDECIDED as normal reboot Date: Tue, 26 Jan 2010 03:32:01 +0530 Message-Id: <1264456921-13846-1-git-send-email-hschauhan@nulltrace.org> X-Mailer: git-send-email 1.6.3.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1073 Lines: 36 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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/