]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix build error if __xchg() is not getting inlined.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 24 Nov 2009 13:16:02 +0000 (13:16 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 1 Dec 2009 16:21:25 +0000 (16:21 +0000)
commit4d04c9a51c7dcc49e47c0ee78f412ed9ad18dd27
tree617d481b1c46c6a0ccdb4404ba84b25657b3128a
parent12e5c4e1abc049c90c217fa1d6a609dc9df253c5
MIPS: Fix build error if __xchg() is not getting inlined.

If __xchg() is not getting inlined the outline version of the function
will have a reference to __xchg_called_with_bad_pointer() which does not
exist remaining.  Fixed by using BUILD_BUG_ON() to check for allowable
operand sizes.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Patchwork: http://patchwork.linux-mips.org/patch/705/
arch/mips/include/asm/system.h