diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-03-15 13:28:00 +0100 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2011-03-25 22:37:31 +0100 |
commit | 21431c2900a0b669080b5bfaae2a7d9d9c026e9b (patch) | |
tree | 7444458f7297d5bfe2ef011efb0586112a652a2e /arch/x86/kernel/kgdb.c | |
parent | kdb: code cleanup to use macro instead of value (diff) | |
download | linux-21431c2900a0b669080b5bfaae2a7d9d9c026e9b.tar.xz linux-21431c2900a0b669080b5bfaae2a7d9d9c026e9b.zip |
kgdb,x86_64: fix compile warning found with sparse
Fix sparse warning:
arch/x86/kernel/kgdb.c:123:9: warning: switch with no cases
Reported-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'arch/x86/kernel/kgdb.c')
-rw-r--r-- | arch/x86/kernel/kgdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c index a4130005028a..3c2fb0f25abd 100644 --- a/arch/x86/kernel/kgdb.c +++ b/arch/x86/kernel/kgdb.c @@ -121,8 +121,8 @@ char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) memcpy(mem, (void *)regs + dbg_reg_def[regno].offset, dbg_reg_def[regno].size); - switch (regno) { #ifdef CONFIG_X86_32 + switch (regno) { case GDB_SS: if (!user_mode_vm(regs)) *(unsigned long *)mem = __KERNEL_DS; @@ -135,8 +135,8 @@ char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) case GDB_FS: *(unsigned long *)mem = 0xFFFF; break; -#endif } +#endif return dbg_reg_def[regno].name; } |