From 4620b935dec5f6aa88df7349e7827a84fa6e57f2 Mon Sep 17 00:00:00 2001 From: Huihuang Shi Date: Wed, 17 Oct 2018 11:32:28 +0800 Subject: [PATCH] fix "use of single line comments(s) //" Replace "//" with '/*','*/' couples. V1->V2: Correct comment "Tracked-On" format V2->V3: Remove "/* ==...===*/" comment Tracked-On: #861 Signed-off-by: Huihuang Shi Acked-by: Eddie Dong --- hypervisor/arch/x86/trusty.c | 3 ++- hypervisor/bsp/uefi/efi/multiboot.h | 5 ----- hypervisor/bsp/uefi/efi/pe.c | 4 ++-- hypervisor/include/arch/x86/per_cpu.h | 2 +- hypervisor/include/common/hypercall.h | 6 ++++-- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/hypervisor/arch/x86/trusty.c b/hypervisor/arch/x86/trusty.c index 63e771d46..843f6c75f 100644 --- a/hypervisor/arch/x86/trusty.c +++ b/hypervisor/arch/x86/trusty.c @@ -499,4 +499,5 @@ void restore_sworld_context(struct vcpu *vcpu) /** * @} - */ // End of trusty_apis + */ +/* End of trusty_apis */ diff --git a/hypervisor/bsp/uefi/efi/multiboot.h b/hypervisor/bsp/uefi/efi/multiboot.h index b28fb1c43..f2af34cbf 100644 --- a/hypervisor/bsp/uefi/efi/multiboot.h +++ b/hypervisor/bsp/uefi/efi/multiboot.h @@ -42,8 +42,6 @@ struct multiboot_info; extern struct multiboot_info mbi; -// ======================================================================== - /* * Multiboot header structure. */ @@ -79,7 +77,6 @@ struct multiboot_header { */ extern struct multiboot_header *Multiboot_Header; -// ======================================================================== /* * Multiboot information structure. */ @@ -179,6 +176,4 @@ struct multiboot_module { #endif /* !defined(_LOCORE) */ -// ======================================================================== - #endif /* _MULTIBOOT_H */ diff --git a/hypervisor/bsp/uefi/efi/pe.c b/hypervisor/bsp/uefi/efi/pe.c index c0995bf5a..961031ed8 100644 --- a/hypervisor/bsp/uefi/efi/pe.c +++ b/hypervisor/bsp/uefi/efi/pe.c @@ -43,7 +43,7 @@ #include #include "stdlib.h" -#define DOS_FILE_MAGIC_NUMBER 0x5A4D //"MZ" +#define DOS_FILE_MAGIC_NUMBER 0x5A4D /* "MZ" */ struct DosFileHeader { uint16_t mMagic; uint16_t LastSize; @@ -68,7 +68,7 @@ struct DosFileHeader { #define IMAGE_FILE_MACHINE_I386 0x14c #define IMAGE_FILE_MACHINE_AMD64 0x8664 -#define PE_FILE_MAGIC_NUMBER 0x00004550 //"PE\0\0" +#define PE_FILE_MAGIC_NUMBER 0x00004550 /* "PE\0\0" */ struct PeHeader { uint32_t mMagic; uint16_t mMachine; diff --git a/hypervisor/include/arch/x86/per_cpu.h b/hypervisor/include/arch/x86/per_cpu.h index 820cc38a1..a1bdd636f 100644 --- a/hypervisor/include/arch/x86/per_cpu.h +++ b/hypervisor/include/arch/x86/per_cpu.h @@ -49,7 +49,7 @@ struct per_cpu_region { char logbuf[LOG_MESSAGE_MAX_SIZE]; uint32_t lapic_id; struct smp_call_info_data smp_call_info; -} __aligned(CPU_PAGE_SIZE); //per_cpu_region size aligned with CPU_PAGE_SIZE +} __aligned(CPU_PAGE_SIZE); /* per_cpu_region size aligned with CPU_PAGE_SIZE */ extern struct per_cpu_region *per_cpu_data_base_ptr; extern uint16_t phys_cpu_num; diff --git a/hypervisor/include/common/hypercall.h b/hypervisor/include/common/hypercall.h index 7de01098f..d281ddd92 100644 --- a/hypervisor/include/common/hypercall.h +++ b/hypervisor/include/common/hypercall.h @@ -486,7 +486,8 @@ int64_t hcall_save_restore_sworld_ctx(struct vcpu *vcpu); /** * @} - */ // End of trusty_hypercall + */ +/* End of trusty_hypercall */ /** * @brief set upcall notifier vector @@ -505,6 +506,7 @@ int32_t hcall_set_callback_vector(struct vm *vm, uint64_t param); /** * @} - */ // End of acrn_hypercall + */ +/* End of acrn_hypercall */ #endif /* HYPERCALL_H*/