Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 416185bd authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by H. Peter Anvin
Browse files

x86, cmpxchg: Move 32-bit __cmpxchg_wrong_size to match 64 bit.

parent 4009338d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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.
@@ -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