From: Gerald Schaefer Date: Wed, 26 Sep 2012 01:33:28 +0000 (+1000) Subject: thp, s390: add missing earlyclobber to inline assembly X-Git-Tag: next-20120927~1^2~298 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b094059696f0b566486a95c0e1c22309210f21d4;p=karo-tx-linux.git thp, s390: add missing earlyclobber to inline assembly The constraints of the rrbm inline assembly are missing two earlyclobber operands, which can lead to an addressing exception depending on compiler register allocation decisions. Signed-off-by: Gerald Schaefer Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: Andrew Morton --- diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index 2fdab82e70d9..ed14fc2db6e0 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -1296,7 +1296,8 @@ static inline int pmdp_test_and_clear_young(struct vm_area_struct *vma, " ogr %1,%0\n" " la %3,0(%4,%3)\n" " brct %2,0b\n" - : "=d" (tmp), "+d" (rc), "+d" (counter), "+a" (pmd_addr) + : "=&d" (tmp), "+&d" (rc), "+d" (counter), + "+a" (pmd_addr) : "a" (64 * 4096UL) : "cc"); rc = !!rc; } else {