xen/x86: atomic: Don't allow to write atomically in a pointer to const
authorJulien Grall <jgrall@amazon.com>
Sat, 2 May 2020 14:26:10 +0000 (15:26 +0100)
committerJulien Grall <jgrall@amazon.com>
Mon, 11 May 2020 09:50:17 +0000 (10:50 +0100)
commita82582b1af6a4a57ca53bcfad9f71428cb5f9a54
tree740f1f6a2cc9c8c6b4305df59f632c15cdb08e38
parent52ffcfb73997e43717fa05802acc4503483d2d71
xen/x86: atomic: Don't allow to write atomically in a pointer to const

At the moment, write_atomic() will happily write to a pointer to const.
While there are no use in Xen, it would be best to catch them at
compilation time.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/atomic.h