From: Al Viro Date: Sat, 29 Mar 2008 03:08:18 +0000 (+0000) Subject: NULL noise: frv cmpxchg() X-Git-Tag: MMI-PSA29.97-13-9~35804 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7c43f2b888f9ca1fcb7b07abc4cbff4ca1b8e03b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git NULL noise: frv cmpxchg() Signed-off-by: Al Viro Acked-by: Harvey Harrison Signed-off-by: Linus Torvalds --- diff --git a/include/asm-frv/system.h b/include/asm-frv/system.h index b400cea81487..2c57f4734746 100644 --- a/include/asm-frv/system.h +++ b/include/asm-frv/system.h @@ -234,7 +234,7 @@ extern void free_initmem(void); break; \ \ default: \ - __xg_orig = 0; \ + __xg_orig = (__typeof__(__xg_orig))0; \ asm volatile("break"); \ break; \ } \ @@ -259,7 +259,7 @@ extern uint32_t __cmpxchg_32(uint32_t *v, uint32_t test, uint32_t new); (__force uint32_t)__xg_test, \ (__force uint32_t)__xg_new); break; \ default: \ - __xg_orig = 0; \ + __xg_orig = (__typeof__(__xg_orig))0; \ asm volatile("break"); \ break; \ } \