]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: diag288_wdt: fix __diag288() inline assembly
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Fri, 27 Jan 2023 13:52:42 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:16 +0000 (11:28 +0100)
commitc095cededfb4b5ad71d81143c2b5c61a929ed0af
treeca3231acfce93a5ba03fa1256ad860cbe7dc3bec
parentbb3b3b5022ad54806972bf5c0e52b4fb042c8257
watchdog: diag288_wdt: fix __diag288() inline assembly

commit 2f440dff677190263ef423e54d3bdecac0d7f5b2 upstream.

The DIAG 288 statement consumes an EBCDIC string the address of which is
passed in a register. Use a "memory" clobber to tell the compiler that
memory is accessed within the inline assembly.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/diag288_wdt.c