aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorGravatar Arnd Bergmann <arnd@arndb.de> 2020-01-07 21:08:58 +0100
committerGravatar Herbert Xu <herbert@gondor.apana.org.au> 2020-01-09 11:28:08 +0800
commitcb1eeb75cf3dd84ced81333967200583993dfd73 (patch)
treeb0598ab85730bdb269f7a127991211bdb1fb956f /arch/arm
parentcrypto: arm/curve25519 - add arch-specific key generation function (diff)
downloadlinux-cb1eeb75cf3dd84ced81333967200583993dfd73.tar.gz
linux-cb1eeb75cf3dd84ced81333967200583993dfd73.tar.bz2
linux-cb1eeb75cf3dd84ced81333967200583993dfd73.zip
crypto: hisilicon/sec2 - Use atomics instead of __sync
The use of __sync functions for atomic memory access is not supported in the kernel, and can result in a link error depending on configuration: ERROR: "__tsan_atomic32_compare_exchange_strong" [drivers/crypto/hisilicon/sec2/hisi_sec2.ko] undefined! ERROR: "__tsan_atomic64_fetch_add" [drivers/crypto/hisilicon/sec2/hisi_sec2.ko] undefined! Use the kernel's own atomic interfaces instead. This way the debugfs interface actually reads the counter atomically. Fixes: 416d82204df4 ("crypto: hisilicon - add HiSilicon SEC V2 driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions