s390/crypto: fix compile error for ChaCha20 module
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 16 Dec 2021 18:28:20 +0000 (19:28 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 20 Dec 2021 09:21:55 +0000 (10:21 +0100)
commit39d02827ed40fd421a758a36264c255d69f5d035
tree69f8ab0c88b73bf6ff5364ea1d37a8104e725430
parent4c88bb96e40b757f4796f70a4a7507df554467c4
s390/crypto: fix compile error for ChaCha20 module

The clgfi instruction used within the ChaCha20 assembly is only
available for z9-109 and newer machines, and therefore this will
generate a compile error if compiled e.g. with MARCH_Z900.

Given that the assembler code will only be executed on machines with
vector instructions, which became much later available than z9-109,
use insn notation to generate the clgfi instruction, and avoid compile
errors due to unknown instructions.

Fixes: b087dfab4d39 ("s390/crypto: add SIMD implementation for ChaCha20")
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/crypto/chacha-s390.S