hv: fixed by replace ull to ul.

ul is used as immediate integer suffix with type uint64_t.

Tracked-On: #3214
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
This commit is contained in:
Huihuang Shi 2019-10-30 13:23:28 +08:00 committed by wenlingz
parent 46b157008c
commit 5d662ea11f
3 changed files with 3 additions and 3 deletions

View File

@ -1420,7 +1420,7 @@ static int32_t vlapic_read(struct acrn_vlapic *vlapic, uint32_t offset_arg, uint
struct lapic_regs *lapic = &(vlapic->apic_page);
uint32_t i;
uint32_t offset = offset_arg;
*data = 0ULL;
*data = 0UL;
if (offset > sizeof(*lapic)) {
ret = -EACCES;

View File

@ -25,7 +25,7 @@ void triple_fault_shutdown_vm(struct acrn_vcpu *vcpu)
io_req->io_type = REQ_PORTIO;
io_req->reqs.pio.direction = REQUEST_WRITE;
io_req->reqs.pio.address = VIRTUAL_PM1A_CNT_ADDR;
io_req->reqs.pio.size = 2ULL;
io_req->reqs.pio.size = 2UL;
io_req->reqs.pio.value = (VIRTUAL_PM1A_SLP_EN | (5U << 10U));
/* Inject pm1a S5 request to SOS to shut down the guest */

View File

@ -102,7 +102,7 @@ void append_seed_arg(char *cmd_dst, bool vm_is_sos)
if ((cmd_dst != NULL) && vm_is_sos) {
for (i = 0U; seed_arg[i].str != NULL; i++) {
if (seed_arg[i].addr != 0ULL) {
if (seed_arg[i].addr != 0UL) {
(void)memset(buf, 0U, sizeof(buf));
snprintf(buf, sizeof(buf), "%s0x%X ", seed_arg[i].str,