diff mbox series

[7/8] selftests: x86: fsgsbase: Remove unused function and variable

Message ID 20240501122918.3831734-8-usama.anjum@collabora.com
State New
Headers show
Series selftests: x86: build suite with clang | expand

Commit Message

Muhammad Usama Anjum May 1, 2024, 12:29 p.m. UTC
Remove unused code.

fsgsbase.c:112:20: warning: unused function 'wrfsbase' [-Wunused-function]
  112 | static inline void wrfsbase(unsigned long fsbase)
      |                    ^~~~~~~~
fsgsbase.c:215:22: warning: unused variable 'remote_hard_zero' [-Wunused-variable]
  215 | static volatile bool remote_hard_zero;
      |                      ^~~~~~~~~~~~~~~~

Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
---
 tools/testing/selftests/x86/fsgsbase.c | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/tools/testing/selftests/x86/fsgsbase.c b/tools/testing/selftests/x86/fsgsbase.c
index 8c780cce941da..50cf32de63139 100644
--- a/tools/testing/selftests/x86/fsgsbase.c
+++ b/tools/testing/selftests/x86/fsgsbase.c
@@ -109,11 +109,6 @@  static inline void wrgsbase(unsigned long gsbase)
 	asm volatile("wrgsbase %0" :: "r" (gsbase) : "memory");
 }
 
-static inline void wrfsbase(unsigned long fsbase)
-{
-	asm volatile("wrfsbase %0" :: "r" (fsbase) : "memory");
-}
-
 enum which_base { FS, GS };
 
 static unsigned long read_base(enum which_base which)
@@ -212,7 +207,6 @@  static void mov_0_gs(unsigned long initial_base, bool schedule)
 }
 
 static volatile unsigned long remote_base;
-static volatile bool remote_hard_zero;
 static volatile unsigned int ftx;
 
 /*