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:
|
||
|---|---|---|
| .. | ||
| hpre | ||
| sec | ||
| sec2 | ||
| zip | ||
| Kconfig | ||
| Makefile | ||
| qm.c | ||
| qm.h | ||
| sgl.c | ||