public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86_64,kgdb: add default case into a switch
@ 2010-11-22  7:02 Namhyung Kim
  2010-11-22 14:39 ` Jason Wessel
  0 siblings, 1 reply; 3+ messages in thread
From: Namhyung Kim @ 2010-11-22  7:02 UTC (permalink / raw)
  To: Jason Wessel, Thomas Gleixner, Ingo Molnar, H. Peter Anvin
  Cc: x86, linux-kernel

This fixes following sparse warning on x86_64:

 arch/x86/kernel/kgdb.c:123:9: warning: switch with no cases

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 arch/x86/kernel/kgdb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
index cd21b65..6919506 100644
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
@@ -135,6 +135,8 @@ char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
 		*(unsigned long *)mem = 0xFFFF;
 		break;
 #endif
+	default:
+		break;
 	}
 	return dbg_reg_def[regno].name;
 }
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-23  3:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-22  7:02 [PATCH] x86_64,kgdb: add default case into a switch Namhyung Kim
2010-11-22 14:39 ` Jason Wessel
2010-11-23  3:21   ` Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox