Skip to contentSkip to conversation

KVM: arm64:space required before the open parenthesis '('

PATCH New [email protected] 1 participant 1 message Jul 14, 2023 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 KVM: arm64:space required before the open parenthesis '('

To make the code easier and understandable, put a space before the opening parenthesis to distinguish functions from parentheses for other purposes. Doing so can also avoid some potential errors or ambiguities.

---
 arch/arm64/kvm/inject_fault.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kvm/inject_fault.c +1 -1
index 0bd93a5f21ce..3cc891c0b292 100644
@@ -29,7 +29,7 @@ static void pend_sync_exception(struct kvm_vcpu *vcpu)
      * changing context, and the exception itself can be delayed
      * until the next entry.
      */
-    switch(*vcpu_cpsr(vcpu) & PSR_MODE_MASK) {
+    switch (*vcpu_cpsr(vcpu) & PSR_MODE_MASK) {
     case PSR_MODE_EL2h:
     case PSR_MODE_EL2t:
         kvm_pend_exception(vcpu, EXCEPT_AA64_EL2_SYNC);