History

kgdb,x86_64: fix compile warning found with sparse

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

Jason Wessel committed 16 years ago

Commit 21431c21 parent 27029c31 file · +2 −2Browse files

Unified · Split

arch/x86/kernel/kgdb.c+2−2
@@ -121,8 +121,8 @@ char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) · 120 unmodified lines
121121 memcpy(mem, (void *)regs + dbg_reg_def[regno].offset,
122122 dbg_reg_def[regno].size);
123123
124− switch (regno) {
125124 #ifdef CONFIG_X86_32
125+ switch (regno) {
126126 case GDB_SS:
127127 if (!user_mode_vm(regs))
128128 *(unsigned long *)mem = __KERNEL_DS;
@@ -135,8 +135,8 @@ char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs) · 6 unmodified lines
135135 case GDB_FS:
136136 *(unsigned long *)mem = 0xFFFF;
137137 break;
138−#endif
139138 }
139+#endif
140140 return dbg_reg_def[regno].name;
141141 }
142142

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t