Patch "crypto: arm/ghash-ce - define fpu before fpu registers are referenced" has been added to the 4.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    crypto: arm/ghash-ce - define fpu before fpu registers are referenced

to the 4.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     crypto-arm-ghash-ce-define-fpu-before-fpu-registers-.patch
and it can be found in the queue-4.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit cb38e991ebc2cbe937192d52a33c40bbb1603829
Author: Stefan Agner <stefan@xxxxxxxx>
Date:   Mon Mar 2 00:37:14 2020 +0100

    crypto: arm/ghash-ce - define fpu before fpu registers are referenced
    
    commit 7548bf8c17d84607c106bd45d81834afd95a2edb upstream.
    
    Building ARMv7 with Clang's integrated assembler leads to errors such
    as:
    arch/arm/crypto/ghash-ce-core.S:34:11: error: register name expected
     t3l .req d16
              ^
    
    Since no FPU has selected yet Clang considers d16 not a valid register.
    Moving the FPU directive on-top allows Clang to parse the registers and
    allows to successfully build this file with Clang's integrated assembler.
    
    Signed-off-by: Stefan Agner <stefan@xxxxxxxx>
    Reviewed-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
    Tested-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
    Acked-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
    Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/arm/crypto/ghash-ce-core.S b/arch/arm/crypto/ghash-ce-core.S
index e5d309d088fa..fca826e0bfc9 100644
--- a/arch/arm/crypto/ghash-ce-core.S
+++ b/arch/arm/crypto/ghash-ce-core.S
@@ -11,6 +11,9 @@
 #include <linux/linkage.h>
 #include <asm/assembler.h>
 
+	.arch		armv8-a
+	.fpu		crypto-neon-fp-armv8
+
 	SHASH		.req	q0
 	T1		.req	q1
 	XL		.req	q2
@@ -64,8 +67,6 @@
 	SHASH2_p64	.req	d31
 
 	.text
-	.arch		armv8-a
-	.fpu		crypto-neon-fp-armv8
 
 	.macro		__pmull_p64, rd, rn, rm, b1, b2, b3, b4
 	vmull.p64	\rd, \rn, \rm



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux