From 0f0be7f75153923afb3241b07b89773c97f92022 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sat, 28 Jan 2023 01:02:25 -0500 Subject: Fix compiler warnings * i386/xen/xen.c: Move failsafe_callback_regs to header file and include xen/xen.h * xen/block.c: `name` must be const. Fix format string. * xen/console.c: Move hyp_console_write and inline it in the header. Use static qualifier whenever possible. Cast to interrupt_handler_fn. * xen/console.h: Define hyp_console_write as inline function. * xen/evt.c: Avoid old style declaration and use interrupt_handler_fn. * xen/evt.h: Use interrupt_handler_fn. * xen/net.c: Use static. Use correct format and make `name` const. * xen/time.c: Avoid old style declarations by adding void to the parameter list. * xen/xen.c: Use static. Use interrupt_handler_fn. Delete `_hyp_halt` and `_hyp_todo`. * xen/xen.h: Define hyp_failsafe_c_callback here to make sure we have the prototype. Message-Id: --- xen/xen.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'xen/xen.h') diff --git a/xen/xen.h b/xen/xen.h index cbb793e2..3fd4028a 100644 --- a/xen/xen.h +++ b/xen/xen.h @@ -26,4 +26,16 @@ void hyp_p2m_init(void); void hypclock_machine_intr(int old_ipl, void *ret_addr, struct i386_interrupt_state *regs, uint64_t delta); +struct failsafe_callback_regs { + unsigned int ds; + unsigned int es; + unsigned int fs; + unsigned int gs; + unsigned int ip; + unsigned int cs_and_mask; + unsigned int flags; +}; + +void hyp_failsafe_c_callback(struct failsafe_callback_regs *regs); + #endif /* XEN_XEN_H */ -- cgit v1.2.3