Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
xtensa: Emulate two-byte cmpxchg
Xtensa has no two-byte atomic compare and swap, so the __cmpxchg() switch lets case 2 fall through to __cmpxchg_called_with_bad_pointer(), which is declared but never defined, so a two-byte cmpxchg() fails at link time. Route case 2 through the new cmpxchg_emu_u16(), which takes the old and new values as unsigned long and narrows them itself, so the call needs no extra casts. Signed-off-by: Bradley Morgan <brads@mainlining.org> Reviewed-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Author Bradley Morgan Committer Paul E. McKenney Date (Oct 12, 2026, 11:36 PM UTC) Commit
Copy SHA
Parent 2213947c 2213947c08fa9c44595aa0e84e359985ed40d3b6