OSDN Git Service

parisc: Mark pointers volatile in __xchg8(), __xchg32() and __xchg64()
authorJohn David Anglin <dave.anglin@bell.net>
Fri, 2 Oct 2020 19:16:49 +0000 (21:16 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 15 Oct 2020 06:10:39 +0000 (08:10 +0200)
commit2a7d4eed5720d163f50b26892abe45b8cf40e849
treee10e31fa77c92081ab889c06cdac00d18b9f9dae
parent4df82ce78a34b8f94f3a512ef93972f978713cbc
parisc: Mark pointers volatile in __xchg8(), __xchg32() and __xchg64()

Let the complier treat the pointers volatile to ensure that they get
accessed atomicly.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/cmpxchg.h
arch/parisc/lib/bitops.c