]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] system.h: Fix compile error for 1 and 2 byte cmpxchg
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 24 Mar 2010 10:49:52 +0000 (11:49 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Wed, 24 Mar 2010 10:49:53 +0000 (11:49 +0100)
commitc6e91d3258af591c2bd037d8cf255b03e5b55472
tree467f31d9adb472fec251e22af02e3cf785a3f45c
parent6444f9417e7f8b22c3a89ce5f344d52692e3574d
[S390] system.h: Fix compile error for 1 and 2 byte cmpxchg

commit 9f4a06ed2e6aec310e9f1fe4707ea06ec7fd7216 "memcg: move charges of anonymous
swap" revealed that the 1 byte and 2 byte cmpxchg is currently broken:

arch/s390/include/asm/system.h: Assembler messages:
arch/s390/include/asm/system.h:241: Error: junk at end of line: `(%r5)'
make[1]: *** [mm/page_cgroup.o] Error 1
make[1]: *** Waiting for unfinished jobs....

It turned out that commit a772f7d9ee4fd0dd503a13d9de3041de95bb7a3f ([S390] use
inline assembly contraints available with gcc 3.3.3) broke the inline assembly.
The or operands are now in constraint 3 and 4 instead of 2 and 3.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/system.h