|
|
2f246c |
From 32e40f9506b9e32917eb73154f93037b443124d1 Mon Sep 17 00:00:00 2001
|
|
|
2f246c |
From: Alexander Egorenkov <egorenar@linux.ibm.com>
|
|
|
2f246c |
Date: Fri, 27 Jan 2023 14:52:42 +0100
|
|
|
2f246c |
Subject: [PATCH] watchdog: diag288_wdt: fix __diag288() inline assembly
|
|
|
2f246c |
References: bsc#1207497
|
|
|
2f246c |
Git-commit: 32e40f9506b9e32917eb73154f93037b443124d1
|
|
|
2f246c |
Patch-mainline: v6.2-rc7
|
|
|
2f246c |
|
|
|
2f246c |
The DIAG 288 statement consumes an EBCDIC string the address of which is
|
|
|
2f246c |
passed in a register. Use a "memory" clobber to tell the compiler that
|
|
|
2f246c |
memory is accessed within the inline assembly.
|
|
|
2f246c |
|
|
|
2f246c |
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
|
|
|
2f246c |
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
|
|
|
2f246c |
Cc: <stable@vger.kernel.org>
|
|
|
2f246c |
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
|
|
|
2f246c |
Signed-off-by: Thomas Abraham <tabraham@suse.com>
|
|
|
2f246c |
|
|
|
2f246c |
---
|
|
|
2f246c |
drivers/watchdog/diag288_wdt.c | 2 +-
|
|
|
2f246c |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
2f246c |
|
|
|
2f246c |
diff --git a/drivers/watchdog/diag288_wdt.c b/drivers/watchdog/diag288_wdt.c
|
|
|
2f246c |
index 2112eef69969..6ca5d9515d85 100644
|
|
|
2f246c |
--- a/drivers/watchdog/diag288_wdt.c
|
|
|
2f246c |
+++ b/drivers/watchdog/diag288_wdt.c
|
|
|
2f246c |
@@ -86,7 +86,7 @@ static int __diag288(unsigned int func, unsigned int timeout,
|
|
|
2f246c |
"1:\n"
|
|
|
2f246c |
EX_TABLE(0b, 1b)
|
|
|
2f246c |
: "+d" (err) : "d"(__func), "d"(__timeout),
|
|
|
2f246c |
- "d"(__action), "d"(__len) : "1", "cc");
|
|
|
2f246c |
+ "d"(__action), "d"(__len) : "1", "cc", "memory");
|
|
|
2f246c |
return err;
|
|
|
2f246c |
}
|
|
|
2f246c |
|
|
|
2f246c |
--
|
|
|
2f246c |
2.35.3
|
|
|
2f246c |
|