Skip to contentSkip to conversation

selftests/x86/ldt_gdt: remove unneeded semicolon

PATCH In review Yang Li 2 participants 2 messages Feb 7, 2021 – Feb 8, 2021

Subsystems (2)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 selftests/x86/ldt_gdt: remove unneeded semicolon

Eliminate the following coccicheck warning:
./tools/testing/selftests/x86/ldt_gdt.c:610:2-3: Unneeded semicolon

---
 tools/testing/selftests/x86/ldt_gdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/x86/ldt_gdt.c +1 -1
index 1aef72d..3a29346 100644
@@ -607,7 +607,7 @@ static void do_multicpu_tests(void)
 
 		failures++;
 		asm volatile ("mov %0, %%ss" : : "rm" (orig_ss));
-	};
+	}
 
 	ftx = 100;  /* Kill the thread. */
 	syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0);
Signature · 1 line
1.8.3.1
maintainer
#1 lore raw
Quoted 15 lines · Yang Li

Eliminate the following coccicheck warning:
./tools/testing/selftests/x86/ldt_gdt.c:610:2-3: Unneeded semicolon

---
  tools/testing/selftests/x86/ldt_gdt.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/x86/ldt_gdt.c +0 -0
index 1aef72d..3a29346 100644

tools/testing/selftests/x86/ldt_gdt.c static void do_multicpu_tests(void) · line 613

Quoted 8 lines
tools/testing/selftests/x86/ldt_gdt.c +1 -1
@@ -607,7 +607,7 @@ static void do_multicpu_tests(void)
 
  		failures++;
  		asm volatile ("mov %0, %%ss" : : "rm" (orig_ss));
-	};
+	}
 
  	ftx = 100;  /* Kill the thread. */
  	syscall(SYS_futex, &ftx, FUTEX_WAKE, 0, NULL, NULL, 0);

Thank you. Now applied to linux-kselftest next for 5.12-rc1

thanks,
-- Shuah