Skip to contentSkip to conversation

NULL noise: frv cmpxchg()

PATCH In review Al Viro 2 participants 2 messages Mar 29, 2008

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 NULL noise: frv cmpxchg()

---
 include/asm-frv/system.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/asm-frv/system.h +2 -2
index b400cea..2c57f47 100644
@@ -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;								\
 	}									\
Signature · 1 line
1.5.3.GIT