2008-03-29 03:09:01

by Al Viro

[permalink] [raw]
Subject: [PATCH] NULL noise: frv cmpxchg()


Signed-off-by: Al Viro <[email protected]>
---
include/asm-frv/system.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/asm-frv/system.h b/include/asm-frv/system.h
index b400cea..2c57f47 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; \
} \
--
1.5.3.GIT


2008-03-29 18:47:31

by Harvey Harrison

[permalink] [raw]
Subject: Re: [PATCH] NULL noise: frv cmpxchg()

On Sat, 2008-03-29 at 03:08 +0000, Al Viro wrote:
> Signed-off-by: Al Viro <[email protected]>
> ---
> include/asm-frv/system.h | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>

Not in -mm, please apply.

Harvey