1
0
Fork 0
alistair23-linux/drivers/crypto/hisilicon
Arnd Bergmann cb1eeb75cf 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: 416d82204d ("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>
2020-01-09 11:28:08 +08:00
..
hpre crypto: hisilicon: Fix misuse of GENMASK macro 2019-10-23 19:47:00 +11:00
sec crypto: hisilicon - Matching the dma address for dma_pool_free() 2019-09-20 22:53:09 +10:00
sec2 crypto: hisilicon/sec2 - Use atomics instead of __sync 2020-01-09 11:28:08 +08:00
zip crypto: hisilicon - no need to check return value of debugfs_create functions 2019-11-17 08:37:29 +08:00
Kconfig crypto: hisilicon - add HiSilicon SEC V2 driver 2019-11-22 18:48:36 +08:00
Makefile crypto: hisilicon - add HiSilicon SEC V2 driver 2019-11-22 18:48:36 +08:00
qm.c crypto: hisilicon - no need to check return value of debugfs_create functions 2019-11-17 08:37:29 +08:00
qm.h crypto: hisilicon - fix to return sub-optimal device when best device has no qps 2019-11-01 13:42:47 +08:00
sgl.c crypto: hisilicon - use sgl API to get sgl dma addr and len 2019-11-01 13:42:47 +08:00