mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
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:
@@ -151,8 +151,9 @@ int32_t hv_main(uint16_t pcpu_id)
|
||||
}
|
||||
|
||||
#ifdef HV_DEBUG
|
||||
void get_vmexit_profile(char *str, int str_max)
|
||||
void get_vmexit_profile(char *str_arg, int str_max)
|
||||
{
|
||||
char *str = str_arg;
|
||||
uint16_t cpu, i;
|
||||
int len, size = str_max;
|
||||
|
||||
|
@@ -157,8 +157,9 @@ static void _get_req_info_(struct vhm_request *req, int *id, char *type,
|
||||
}
|
||||
}
|
||||
|
||||
void get_req_info(char *str, int str_max)
|
||||
void get_req_info(char *str_arg, int str_max)
|
||||
{
|
||||
char *str = str_arg;
|
||||
uint32_t i;
|
||||
int32_t len, size = str_max, client_id;
|
||||
union vhm_request_buffer *req_buf;
|
||||
|
Reference in New Issue
Block a user