HV:treewide:fix "Reference parameter to procedure is reassigned"

Parameter's type which is pointer should not be changed in the
scope of function,assign it's value to local variable to fixed
it out.

Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Huihuang Shi
2018-07-26 12:03:12 +08:00
committed by lijinxia
parent 9d4c9d769e
commit 59771ff461
23 changed files with 76 additions and 46 deletions

View File

@@ -120,7 +120,7 @@ int copy_to_gva(struct vcpu *vcpu, void *h_ptr, uint64_t gva,
uint64_t create_guest_init_gdt(struct vm *vm, uint32_t *limit);
#ifdef HV_DEBUG
void get_req_info(char *str, int str_max);
void get_req_info(char *str_arg, int str_max);
#endif /* HV_DEBUG */
#endif /* !ASSEMBLER */

View File

@@ -56,7 +56,7 @@ int vioapic_mmio_access_handler(struct vcpu *vcpu, struct io_request *io_req,
void *handler_private_data);
#ifdef HV_DEBUG
void get_vioapic_info(char *str, int str_max, uint16_t vmid);
void get_vioapic_info(char *str_arg, int str_max, uint16_t vmid);
#endif /* HV_DEBUG */
#endif

View File

@@ -36,7 +36,7 @@ extern uint8_t legacy_irq_to_pin[NR_LEGACY_IRQ];
extern uint8_t pic_ioapic_pin_map[NR_LEGACY_PIN];
#ifdef HV_DEBUG
int get_ioapic_info(char *str, int str_max_len);
int get_ioapic_info(char *str_arg, int str_max_len);
#endif /* HV_DEBUG */
#endif /* IOAPIC_H */

View File

@@ -94,7 +94,7 @@ void interrupt_init(uint16_t pcpu_id);
void cancel_event_injection(struct vcpu *vcpu);
#ifdef HV_DEBUG
void get_cpu_interrupt_info(char *str, int str_max);
void get_cpu_interrupt_info(char *str_arg, int str_max);
#endif /* HV_DEBUG */
#endif /* ARCH_IRQ_H */

View File

@@ -48,7 +48,7 @@ int cr_access_vmexit_handler(struct vcpu *vcpu);
(VM_EXIT_QUALIFICATION_BIT_MASK(exit_qual, 31U, 16U) >> 16U)
#ifdef HV_DEBUG
void get_vmexit_profile(char *str, int str_max);
void get_vmexit_profile(char *str_arg, int str_max);
#endif /* HV_DEBUG */
#endif /* VMEXIT_H_ */