Skip to content

Commit

Permalink
[ARM] Use unsigned long not u32 in atomic_cmpxchg
Browse files Browse the repository at this point in the history
Since atomic.h does not include types.h, u32 may not be defined.
Since atomics are supposed to work on unsigned long quantities,
use unsigned long instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Nov 16, 2005
1 parent 1b12050 commit 49ee57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-arm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static inline int atomic_sub_return(int i, atomic_t *v)

static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new)
{
u32 oldval, res;
unsigned long oldval, res;

do {
__asm__ __volatile__("@ atomic_cmpxchg\n"
Expand Down

0 comments on commit 49ee57a

Please sign in to comment.