Skip to contentSkip to conversation

x86, copy_user: Remove FIX_ALIGNMENT define

PATCH New Borislav Petkov 1 participant 1 message Jan 4, 2015 x86

lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw

PATCH 1/1 x86, copy_user: Remove FIX_ALIGNMENT define

From: Borislav Petkov <[email protected]>

It is superfluous now so remove it. No object file change before and after.

---
 arch/x86/lib/copy_user_64.S | 5 -----
 1 file changed, 5 deletions(-)
arch/x86/lib/copy_user_64.S +0 -5
index dee945d55594..1530ec2c1b12 100644
@@ -8,9 +8,6 @@
 
 #include <linux/linkage.h>
 #include <asm/dwarf2.h>
-
-#define FIX_ALIGNMENT 1
-
 #include <asm/current.h>
 #include <asm/asm-offsets.h>
 #include <asm/thread_info.h>
@@ -45,7 +42,6 @@
 	.endm
 
 	.macro ALIGN_DESTINATION
-#ifdef FIX_ALIGNMENT
 	/* check for bad alignment of destination */
 	movl %edi,%ecx
 	andl $7,%ecx
@@ -67,7 +63,6 @@
 
 	_ASM_EXTABLE(100b,103b)
 	_ASM_EXTABLE(101b,103b)
-#endif
 	.endm
 
 /* Standard copy_to_user with segment limit checking */
Signature · 1 line
2.2.0.33.gc18b867