Skip to content

Commit

Permalink
UniCore32-bugfix: fix mismatch return value of __xchg_bad_pointer
Browse files Browse the repository at this point in the history
When disintegrate system.h, I left an error in asm/cmpxchg.h, which
will result in following error:

arch/unicore32/include/asm/cmpxchg.h: In function '__xchg':
arch/unicore32/include/asm/cmpxchg.h:38: error: void value not ignored as it ought to be

Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
  • Loading branch information
Guan Xuetao committed Nov 9, 2012
1 parent 446d141 commit 195d457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/unicore32/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr,
: "memory", "cc");
break;
default:
ret = __xchg_bad_pointer();
__xchg_bad_pointer();
}

return ret;
Expand Down

0 comments on commit 195d457

Please sign in to comment.