Skip to content

Commit

Permalink
x86, cmpxchg: Move 32-bit __cmpxchg_wrong_size to match 64 bit.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Link: http://lkml.kernel.org/r/4E5BCC40.3030501@goop.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Jeremy Fitzhardinge authored and H. Peter Anvin committed Aug 29, 2011
1 parent 4009338 commit 416185b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/include/asm/cmpxchg_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

extern void __xchg_wrong_size(void);
extern void __cmpxchg_wrong_size(void);

/*
* Note: no "lock" prefix even on SMP: xchg always implies lock anyway.
Expand Down Expand Up @@ -84,8 +85,6 @@ static inline void set_64bit(volatile u64 *ptr, u64 value)
: "memory");
}

extern void __cmpxchg_wrong_size(void);

/*
* Atomic compare and exchange. Compare OLD with MEM, if identical,
* store NEW in MEM. Return the initial value in MEM. Success is
Expand Down

0 comments on commit 416185b

Please sign in to comment.