Message ID | 20200514123009.5721-5-trini@konsulko.com |
---|---|
State | Accepted |
Commit | 897860ebc1a86506055f6225efff7888fe27d6ee |
Headers | show |
Series | [01/10] kconfiglib: Update to the 14.1.0 release | expand |
On Thu, 14 May 2020 at 06:30, Tom Rini <trini at konsulko.com> wrote: > > In order to update our <linux/compiler.h> to a newer version that no > longer provides ACCESS_ONCE() but only READ_ONCE()/WRITE_ONCE() we need > to convert arch/x86/include/asm/atomic.h to the other macros. > > Cc: Simon Glass <sjg at chromium.org> > Cc: Bin Meng <bmeng.cn at gmail.com> > Signed-off-by: Tom Rini <trini at konsulko.com> > --- > arch/x86/include/asm/atomic.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass <sjg at chromium.org>
diff --git a/arch/x86/include/asm/atomic.h b/arch/x86/include/asm/atomic.h index 806f7873819e..002e36ba53e6 100644 --- a/arch/x86/include/asm/atomic.h +++ b/arch/x86/include/asm/atomic.h @@ -22,7 +22,7 @@ typedef struct { volatile int counter; } atomic_t; */ static inline int atomic_read(const atomic_t *v) { - return ACCESS_ONCE((v)->counter); + return READ_ONCE((v)->counter); } /**
In order to update our <linux/compiler.h> to a newer version that no longer provides ACCESS_ONCE() but only READ_ONCE()/WRITE_ONCE() we need to convert arch/x86/include/asm/atomic.h to the other macros. Cc: Simon Glass <sjg at chromium.org> Cc: Bin Meng <bmeng.cn at gmail.com> Signed-off-by: Tom Rini <trini at konsulko.com> --- arch/x86/include/asm/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)