@@ -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;
/*
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(-)