s390/cpu_mf: remove register variable in __ecctr()
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Mon, 20 Feb 2017 15:07:43 +0000 (16:07 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 31 Mar 2017 05:53:34 +0000 (07:53 +0200)
Using a register variable for r4 is not necessary.  Let the
compiler decide the register to be used.

Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/cpu_mf.h

index facdc2496c3a907c18e8448093d25f764bc911d1..05480e4cc5cabdab4e8bcc5006b8d0691b4bfef7 100644 (file)
@@ -174,7 +174,7 @@ static inline int lcctl(u64 ctl)
 /* Extract CPU counter */
 static inline int __ecctr(u64 ctr, u64 *content)
 {
-       register u64 _content asm("4") = 0;
+       u64 _content;
        int cc;
 
        asm volatile (