From e5504ac8bf4208f278f4f2d90a33ba1442cf9577 Mon Sep 17 00:00:00 2001 From: Gerald Schaefer Date: Fri, 28 Sep 2012 10:19:22 +1000 Subject: [PATCH] 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 --- arch/s390/include/asm/pgtable.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index 0174b008503c..b7d0f4933eac 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -1305,7 +1305,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 { -- 2.39.5