crypto: arm64/sha256 - fix build when CONFIG_PREEMPT_VOLUNTARY=y
authorEric Biggers <ebiggers@google.com>
Wed, 7 May 2025 17:09:01 +0000 (10:09 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 May 2025 01:36:45 +0000 (09:36 +0800)
commit4e0146a94c516e0ce119cd34743108c7652497bd
treeb9d8647933e7bc0891f80874c18460b71e2318c1
parent3bbc902ece47198825d682c8579214306fd0748c
crypto: arm64/sha256 - fix build when CONFIG_PREEMPT_VOLUNTARY=y

Fix the build of sha256-ce.S when CONFIG_PREEMPT_VOLUNTARY=y by passing
the correct label to the cond_yield macro.  Also adjust the code to
execute only one branch instruction when CONFIG_PREEMPT_VOLUNTARY=n.

Fixes: 6e36be511d28 ("crypto: arm64/sha256 - implement library instead of shash")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202505071811.yYpLUbav-lkp@intel.com/
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/lib/crypto/sha256-ce.S