Skip to content
Commit 10d8b148 authored by pan xinhui's avatar pan xinhui Committed by Michael Ellerman
Browse files

powerpc: Use BUILD_BUG_ON_MSG() for unsupported {cmp}xchg sizes



__xchg_called_with_bad_pointer() can't tell us which code uses {cmp}xchg
with an unsupported size, and no error is reported until the link stage.

To make such problems easier to debug, use BUILD_BUG_ON_MSG() instead.

Signed-off-by: default avatarpan xinhui <xinhui.pan@linux.vnet.ibm.com>
[mpe: Tweak change log wording & add relaxed/acquire]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>

fixup
parent 289543a5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment