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

chenqingyun001@208suo.com posted 1 patch 2 years, 6 months ago
arch/arm64/kvm/hyp/exception.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] KVM: arm64:space prohibited between function name and open parenthesis '(';space required before the open parenthesis '('
Posted by chenqingyun001@208suo.com 2 years, 6 months ago
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

Signed-off-by: Qingyun Chen <chenqingyun001@208suo.com>
---
  arch/arm64/kvm/hyp/exception.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/kvm/hyp/exception.c 
b/arch/arm64/kvm/hyp/exception.c
index 424a5107cddb..46888dba3def 100644
--- a/arch/arm64/kvm/hyp/exception.c
+++ b/arch/arm64/kvm/hyp/exception.c
@@ -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;