Messages in this thread Patch in this message | | | From | Namhyung Kim <> | Subject | [PATCH] x86_64,kgdb: add default case into a switch | Date | Mon, 22 Nov 2010 16:02:55 +0900 |
| |
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
| |