mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 10:04:42 +00:00
fix parted of "missing for discarded return value"
MISRA C required that return value should be used, missing for it should add "(void)" prefix before the function call. Some function can be declared without return value to avoid this problem. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -35,7 +35,7 @@ enum {
|
||||
struct vhm_request;
|
||||
|
||||
int acrn_insert_request_wait(struct vcpu *vcpu, struct vhm_request *req);
|
||||
int get_req_info(char *str, int str_max);
|
||||
void get_req_info(char *str, int str_max);
|
||||
|
||||
/*
|
||||
* VCPU related APIs
|
||||
|
||||
@@ -260,7 +260,7 @@ struct vcpu* get_ever_run_vcpu(int pcpu_id);
|
||||
int create_vcpu(int cpu_id, struct vm *vm, struct vcpu **rtn_vcpu_handle);
|
||||
int start_vcpu(struct vcpu *vcpu);
|
||||
int shutdown_vcpu(struct vcpu *vcpu);
|
||||
int destroy_vcpu(struct vcpu *vcpu);
|
||||
void destroy_vcpu(struct vcpu *vcpu);
|
||||
|
||||
void reset_vcpu(struct vcpu *vcpu);
|
||||
void pause_vcpu(struct vcpu *vcpu, enum vcpu_state new_state);
|
||||
|
||||
@@ -53,5 +53,5 @@ bool vioapic_get_rte(struct vm *vm, int pin, void *rte);
|
||||
int vioapic_mmio_access_handler(struct vcpu *vcpu, struct mem_io *mmio,
|
||||
void *handler_private_data);
|
||||
|
||||
int get_vioapic_info(char *str, int str_max, int vmid);
|
||||
void get_vioapic_info(char *str, int str_max, int vmid);
|
||||
#endif
|
||||
|
||||
@@ -170,7 +170,7 @@ struct vm_description {
|
||||
};
|
||||
|
||||
int shutdown_vm(struct vm *vm);
|
||||
int pause_vm(struct vm *vm);
|
||||
void pause_vm(struct vm *vm);
|
||||
int start_vm(struct vm *vm);
|
||||
int create_vm(struct vm_description *vm_desc, struct vm **vm);
|
||||
int prepare_vm0(void);
|
||||
|
||||
Reference in New Issue
Block a user