]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32dd3873f92a56b7dc0c23029f2fc37221e035a7
tree69f8ab0c88b73bf6ff5364ea1d37a8104e725430
parentfef44e4f4793e34055e86b54eda9b474d77db5d3
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: 620c1042290e ("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