diff --git a/arch/x86/lib/checksum_32.S b/arch/x86/lib/checksum_32.S
index b7518368492a7..9bc944a912748 100644
--- a/arch/x86/lib/checksum_32.S
+++ b/arch/x86/lib/checksum_32.S
@@ -29,8 +29,7 @@
 #include <asm/dwarf2.h>
 #include <asm/errno.h>
 #include <asm/asm.h>
-#include <asm/nospec-branch.h>
-
+				
 /*
  * computes a partial checksum, e.g. for TCP/UDP fragments
  */
@@ -160,7 +159,7 @@ ENTRY(csum_partial)
 	negl %ebx
 	lea 45f(%ebx,%ebx,2), %ebx
 	testl %esi, %esi
-	JMP_NOSPEC %ebx
+	jmp *%ebx
 
 	# Handle 2-byte-aligned regions
 20:	addw (%esi), %ax
@@ -447,7 +446,7 @@ ENTRY(csum_partial_copy_generic)
 	andl $-32,%edx
 	lea 3f(%ebx,%ebx), %ebx
 	testl %esi, %esi 
-	JMP_NOSPEC %ebx
+	jmp *%ebx
 1:	addl $64,%esi
 	addl $64,%edi 
 	SRC(movb -32(%edx),%bl)	; SRC(movb (%edx),%bl)