mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-30 13:05:45 +00:00
HV:misc:fix "signed/unsigned conversion with cast"
Signed/unsigned conversion should add cast explicitily or change the type of them to the same. V1->V2:Fixed the 0U to 0UL because of the mistakes. V2->V3:remove unsed macro Signed-off-by: HuiHuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -60,7 +60,7 @@ int32_t acrn_insert_request_wait(struct vcpu *vcpu, struct vhm_request *req)
|
||||
union vhm_request_buffer *req_buf = NULL;
|
||||
uint16_t cur;
|
||||
|
||||
ASSERT(sizeof(*req) == (4096/VHM_REQUEST_MAX),
|
||||
ASSERT(sizeof(*req) == (4096U/VHM_REQUEST_MAX),
|
||||
"vhm_request page broken!");
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ int32_t acrn_insert_request_wait(struct vcpu *vcpu, struct vhm_request *req)
|
||||
|
||||
#ifdef HV_DEBUG
|
||||
static void _get_req_info_(struct vhm_request *req, int *id, char *type,
|
||||
char *state, char *dir, long *addr, long *val)
|
||||
char *state, char *dir, int64_t *addr, long *val)
|
||||
{
|
||||
(void)strcpy_s(dir, 16, "NONE");
|
||||
*addr = 0;
|
||||
|
Reference in New Issue
Block a user