* [PATCH] KVM: arm64:space prohibited between function name and open parenthesis '(';space required before the open parenthesis '('
[not found] <tencent_A24E3EC2F8CE6474455D704AA667EF103308@qq.com>
@ 2023-07-13 12:19 ` chenqingyun001
0 siblings, 0 replies; only message in thread
From: chenqingyun001 @ 2023-07-13 12:19 UTC (permalink / raw)
To: maz, oliver.upton, catalin.marinas, will
Cc: kvmarm, linux-kernel, james.morse, suzuki.poulose, yuzenghui
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-13 12:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <tencent_A24E3EC2F8CE6474455D704AA667EF103308@qq.com>
2023-07-13 12:19 ` [PATCH] KVM: arm64:space prohibited between function name and open parenthesis '(';space required before the open parenthesis '(' chenqingyun001
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®