Skip to contentSkip to conversation

KVM: arm64:space prohibited between function name and open parenthesis '(';space required before the open parenthesis '('

PATCH New [email protected] 1 participant 1 message Jul 13, 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 prohibited between function name and open parenthesis '(';space required before the open parenthesis '('

Using spaces can affect the readability and consistency of your code. If you use a space between the function name and the opening parenthesis, it may be mistaken for the function name instead of the actual function name. Use spaces between keywords and opening parentheses to distinguish function calls from control statements

---
 arch/arm64/kvm/hyp/exception.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/kvm/hyp/exception.c +1 -1
index 424a5107cddb..46888dba3def 100644
@@ -16,7 +16,7 @@
 #include <asm/kvm_mmu.h>
 #include <asm/kvm_nested.h>
 
-#if !defined (__KVM_NVHE_HYPERVISOR__) && !defined (__KVM_VHE_HYPERVISOR__)
+#if !defined(__KVM_NVHE_HYPERVISOR__) && !defined(__KVM_VHE_HYPERVISOR__)
 #error Hypervisor code only!
 #endif
 
@@ -295,7 +295,7 @@ static void enter_exception32(struct kvm_vcpu *vcpu, u32 mode, u32 vect_offset)
     return_address  += return_offsets[vect_offset >> 2][is_thumb];
 
     /* KVM only enters the ABT and UND modes, so only deal with those 

*/
- switch(mode) {

+    switch (mode) {
     case PSR_AA32_MODE_ABT:
         __vcpu_write_spsr_abt(vcpu, host_spsr_to_spsr32(spsr));
         vcpu_gp_regs(vcpu)->compat_lr_abt = return_address;