Re: [PATCH] powerpc: Fix __cmpxchg() to take a volatile ptr again

2016-11-24 Thread Pan Xinhui
在 2016/11/25 11:07, Michael Ellerman 写道: In commit d0563a1297e2 ("powerpc: Implement {cmp}xchg for u8 and u16") we removed the volatile from __cmpxchg(). This is leading to warnings such as: drivers/gpu/drm/drm_lock.c: In function ‘drm_lock_take’: arch/powerpc/include/asm/cmpxchg.h:484:37

[PATCH] powerpc: Fix __cmpxchg() to take a volatile ptr again

2016-11-24 Thread Michael Ellerman
In commit d0563a1297e2 ("powerpc: Implement {cmp}xchg for u8 and u16") we removed the volatile from __cmpxchg(). This is leading to warnings such as: drivers/gpu/drm/drm_lock.c: In function ‘drm_lock_take’: arch/powerpc/include/asm/cmpxchg.h:484:37: warning: passing argument 1 of ‘__cmpxchg