Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/ftrace: Style cleanup in ftrace_mprofile.S

Add some line breaks to better match the file's style, add
some space after comma and fix a couple of misplaced blanks.

Suggested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/973506292d0c7b05c06530c8e11803ce38e5eda2.1644949750.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Michael Ellerman
76b37281 fc75f873

+8 -4
+8 -4
arch/powerpc/kernel/trace/ftrace_mprofile.S
··· 87 87 #endif 88 88 89 89 #ifdef CONFIG_LIVEPATCH_64 90 - mr r14,r7 /* remember old NIP */ 90 + mr r14, r7 /* remember old NIP */ 91 91 #endif 92 + 92 93 /* Calculate ip from nip-4 into r3 for call below */ 93 94 subi r3, r7, MCOUNT_INSN_SIZE 94 95 ··· 103 102 PPC_STL r11, _CCR(r1) 104 103 105 104 /* Load &pt_regs in r6 for call below */ 106 - addi r6, r1 ,STACK_FRAME_OVERHEAD 105 + addi r6, r1, STACK_FRAME_OVERHEAD 107 106 108 107 /* ftrace_call(r3, r4, r5, r6) */ 109 108 .globl ftrace_regs_call ··· 114 113 /* Load ctr with the possibly modified NIP */ 115 114 PPC_LL r3, _NIP(r1) 116 115 mtctr r3 116 + 117 117 #ifdef CONFIG_LIVEPATCH_64 118 118 cmpd r14, r3 /* has NIP been altered? */ 119 119 #endif ··· 198 196 199 197 #ifdef CONFIG_LIVEPATCH_64 200 198 SAVE_GPR(14, r1) 201 - mr r14,r7 /* remember old NIP */ 199 + mr r14, r7 /* remember old NIP */ 202 200 #endif 203 201 /* Calculate ip from nip-4 into r3 for call below */ 204 202 subi r3, r7, MCOUNT_INSN_SIZE ··· 212 210 PPC_STL r8, _MSR(r1) 213 211 214 212 /* Load &pt_regs in r6 for call below */ 215 - addi r6, r1 ,STACK_FRAME_OVERHEAD 213 + addi r6, r1, STACK_FRAME_OVERHEAD 216 214 217 215 /* ftrace_call(r3, r4, r5, r6) */ 218 216 .globl ftrace_call ··· 222 220 223 221 PPC_LL r3, _NIP(r1) 224 222 mtctr r3 223 + 225 224 #ifdef CONFIG_LIVEPATCH_64 226 225 cmpd r14, r3 /* has NIP been altered? */ 227 226 REST_GPR(14, r1) ··· 247 244 /* Based on the cmpd above, if the NIP was altered handle livepatch */ 248 245 bne- livepatch_handler 249 246 #endif 247 + 250 248 bctr /* jump after _mcount site */ 251 249 252 250 #ifdef CONFIG_LIVEPATCH_64