From 9f63c2489c715b2e986517cc3c6fb9e5fcd6218e Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Mon, 26 Mar 2018 21:34:18 -0400 Subject: Revert "x86/retpoline/checksum32: Convert assembler indirect jumps" This reverts commit 539142804971ee10ff0370d19d6e1ee5bc45babc. Signed-off-by: Sasha Levin --- arch/x86/lib/checksum_32.S | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/x86/lib/checksum_32.S b/arch/x86/lib/checksum_32.S index b7518368492a..9bc944a91274 100644 --- a/arch/x86/lib/checksum_32.S +++ b/arch/x86/lib/checksum_32.S @@ -29,8 +29,7 @@ #include #include #include -#include - + /* * 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) -- cgit v1.2.3