powerpc/pseries: Remove unused r0 in the hcall tracing code
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Fri, 29 Sep 2023 17:23:37 +0000 (22:53 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 30 Sep 2023 12:52:18 +0000 (22:52 +1000)
In the plpar_hcall trace code, currently we use r0
to store the value of r4. But this value is not
used subsequently in the code. Hence remove this unused
save to r0 in plpar_hcall and plpar_hcall9

Suggested-by: Naveen N Rao <naveen@kernel.org>
Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230929172337.7906-2-atrajeev@linux.vnet.ibm.com
arch/powerpc/platforms/pseries/hvCall.S

index 2addf2e..2b0cac6 100644 (file)
@@ -184,8 +184,6 @@ _GLOBAL_TOC(plpar_hcall)
 plpar_hcall_trace:
        HCALL_INST_PRECALL(R5)
 
-       mr      r0,r4
-
        mr      r4,r5
        mr      r5,r6
        mr      r6,r7
@@ -295,8 +293,6 @@ _GLOBAL_TOC(plpar_hcall9)
 plpar_hcall9_trace:
        HCALL_INST_PRECALL(R5)
 
-       mr      r0,r4
-
        mr      r4,r5
        mr      r5,r6
        mr      r6,r7