]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: Use correct byte-sized register constraint in __add()
authorH. Peter Anvin <hpa@zytor.com>
Fri, 6 Apr 2012 16:30:57 +0000 (09:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2012 22:38:59 +0000 (15:38 -0700)
commit26dd184bf94ef7161f23a60c99b88f1a95312f6d
tree67d8776a7f1abe42a152abf631cbd07290391fde
parent36f87c5f10a44a44d1c1d9111c043d965295ab44
x86: Use correct byte-sized register constraint in __add()

commit 8c91c5325e107ec17e40a59a47c6517387d64eb7 upstream.

Similar to:

 2ca052a x86: Use correct byte-sized register constraint in __xchg_op()

... the __add() macro also needs to use a "q" constraint in the
byte-sized case, lest we try to generate an illegal register.

Link: http://lkml.kernel.org/r/4F7A3315.501@goop.org
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Leigh Scott <leigh123linux@googlemail.com>
Cc: Thomas Reitmayr <treitmayr@devbase.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/cmpxchg.h