On 7/12/22 00:04, Uros Bizjak wrote:
while (try_cmpxchg ...); looks to me like a semicolon was left there in error, like "if (...);".
Putting the semicolon at the end is not what Christoph suggested and is not allowed by the kernel coding style.
I also prefer the while-loop instead of do-while. Thanks, Bart.