frv: missing casts in cmpxchg()
PATCH 1/1 frv: missing casts in cmpxchg()
Signed-off-by Al Viro <[email protected]>
--- include/asm-frv/system.h | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
include/asm-frv/system.h +4 -1
@@ -253,7 +253,10 @@ extern uint32_t __cmpxchg_32(uint32_t *v, uint32_t test, uint32_t new); __typeof__(*(ptr)) __xg_new = (new); \ \switch (sizeof (__xg_orig)) { \ -case 4 : __xg_orig =__cmpxchg_32 (__xg_ptr, __xg_test, __xg_new);break ; \ + case 4: __xg_orig = (__force __typeof__(*ptr)) \ + __cmpxchg_32((__force uint32_t *)__xg_ptr, \ + (__force uint32_t)__xg_test, \ + (__force uint32_t)__xg_new);break ; \default : \ __xg_orig =0 ; \ asmvolatile ("break" ); \
Signature · 1 line
1.5.3.GIT
Quoted 1 line · Al Viro
Signed-off-by Al Viro <[email protected]>
Acked-by David Howells <[email protected]>