Skip to contentSkip to conversation

x86/head_32.S: Remove unused macros

PATCH New Alexander Kuleshov 1 participant 1 message Sep 6, 2015 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/head_32.S: Remove unused macros

This patch removes two unused macros: X86_VENDOR and X86_HARD_MATH from the arch/x86/kernel/head_32.S. Also as CPUINFO_x86_vendor not used anywhere, we can safely remove it from asm-offsets_32.c

---
 arch/x86/kernel/asm-offsets_32.c | 1 -
 arch/x86/kernel/head_32.S        | 2 --
 2 files changed, 3 deletions(-)
arch/x86/kernel/asm-offsets_32.c +0 -1
index 6ce3902..fbd293c 100644
@@ -18,7 +18,6 @@ void foo(void);
 void foo(void)
 {
 	OFFSET(CPUINFO_x86, cpuinfo_x86, x86);
-	OFFSET(CPUINFO_x86_vendor, cpuinfo_x86, x86_vendor);
 	OFFSET(CPUINFO_x86_model, cpuinfo_x86, x86_model);
 	OFFSET(CPUINFO_x86_mask, cpuinfo_x86, x86_mask);
 	OFFSET(CPUINFO_cpuid_level, cpuinfo_x86, cpuid_level);
arch/x86/kernel/head_32.S +0 -2
index 0e2d96f..89818b4 100644
@@ -32,10 +32,8 @@
  */
 
 #define X86		new_cpu_data+CPUINFO_x86
-#define X86_VENDOR	new_cpu_data+CPUINFO_x86_vendor
 #define X86_MODEL	new_cpu_data+CPUINFO_x86_model
 #define X86_MASK	new_cpu_data+CPUINFO_x86_mask
-#define X86_HARD_MATH	new_cpu_data+CPUINFO_hard_math
 #define X86_CPUID	new_cpu_data+CPUINFO_cpuid_level
 #define X86_CAPABILITY	new_cpu_data+CPUINFO_x86_capability
 #define X86_VENDOR_ID	new_cpu_data+CPUINFO_x86_vendor_id
Signature · 1 line
2.5.0