diff options
author | Paul Burton <paul.burton@imgtec.com> | 2017-06-09 17:26:36 -0700 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-06-29 02:42:24 +0200 |
commit | d15dc68c1143e249c36612c15bf4e930637b47c3 (patch) | |
tree | 3d15ad84f49c8d9735298f4f4915dd7a5e7f69d3 /sound | |
parent | 77299db802d4a7ae43f7ca246adbff0420bc9f5a (diff) |
MIPS: cmpxchg: Error out on unsupported xchg() calls
xchg() has up until now simply returned the x parameter in cases where
it is called with a pointer to a value of an unsupported size. This will
often cause the calling code to hit a failure path, presuming that the
value of x differs from the content of the memory pointed at by ptr, but
we can do better by producing a compile-time or link-time error such
that unsupported calls to xchg() are detectable earlier than runtime.
This patch does this in the same was as is already done for cmpxchg(),
using a call to a missing function annotated with __compiletime_error().
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16351/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions