]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/mm,pages-states: get rid of register asm
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 17 Jun 2021 18:30:15 +0000 (20:30 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 28 Jun 2021 09:18:28 +0000 (11:18 +0200)
There is no reason to use fixed registers for the essa
instruction. Therefore remove the register asm construct.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/mm/page-states.c

index 7f0e154a470adcbc8633bb045a7e802a49a5103f..68b153083a9210ef0eddaa6efbe39ee6f5e372b8 100644 (file)
@@ -31,17 +31,17 @@ __setup("cmma=", cmma);
 
 static inline int cmma_test_essa(void)
 {
-       register unsigned long tmp asm("0") = 0;
-       register int rc asm("1");
+       unsigned long tmp = 0;
+       int rc = -EOPNOTSUPP;
 
        /* test ESSA_GET_STATE */
        asm volatile(
-               "       .insn   rrf,0xb9ab0000,%1,%1,%2,0\n"
-               "0:     la      %0,0\n"
+               "       .insn   rrf,0xb9ab0000,%[tmp],%[tmp],%[cmd],0\n"
+               "0:     la      %[rc],0\n"
                "1:\n"
                EX_TABLE(0b,1b)
-               : "=&d" (rc), "+&d" (tmp)
-               : "i" (ESSA_GET_STATE), "0" (-EOPNOTSUPP));
+               : [rc] "+&d" (rc), [tmp] "+&d" (tmp)
+               : [cmd] "i" (ESSA_GET_STATE));
        return rc;
 }