From 86156357706b3c741c6b5feda1d36d8687c660de Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 29 Mar 2020 13:17:46 +0200 Subject: 64bit: fix warnings * device/net_io.h (net_set_filter, ethernet_priority): Add prototypes. * device/subrs.h: Include . (if_init_queues): Add prototype. * i386/i386/model_dep.h (machine_relax): Add prototype. * i386/i386/trap.c (i386_astintr): Move mycpu variable definition to where it is used. * i386/i386at/model_dep.c (i386at_init): Likewise for nb_direct, addr, delta. * i386/xen/xen.c (return_to_iret): Change type to char[]. * xen/console.c: Include . * xen/evt.c (hyp_evt_handler): Cast NEVNT to int. * xen/grant.c: Include . (hyp_grant_takeback, hyp_grant_init): Fix print format. * xen/net.c: Include . (paranoia): Remove variable. (hyp_net_init, device_close, device_open): Cast nd - vif_data to int. Fix print format. * xen/store.c (store_put): Cast sizeof to int. * xen/time.c: Include "xen.h". * xen/xen.h (hypclock_machine_intr): Add prototype. --- xen/store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xen/store.c') diff --git a/xen/store.c b/xen/store.c index 659a70c7..23cbc223 100644 --- a/xen/store.c +++ b/xen/store.c @@ -62,7 +62,7 @@ static void store_put(hyp_store_transaction_t t, uint32_t type, struct store_req totlen += sizeof(head); if (totlen > sizeof(store->req) - 1) - panic("too big store message %d, max %d", totlen, sizeof(store->req)); + panic("too big store message %d, max %d", totlen, (int) sizeof(store->req)); while (hyp_ring_available(store->req, store->req_prod, store->req_cons) < totlen) hyp_yield(); -- cgit v1.2.3