1 #ifndef __XEN_HYPERCALL_H__
2 #define __XEN_HYPERCALL_H__
4 #include <asm/hypercall.h>
6 static inline int __must_check
7 HYPERVISOR_multicall_check(
8 multicall_entry_t *call_list, unsigned int nr_calls,
9 const unsigned long *rc_list)
11 int rc = HYPERVISOR_multicall(call_list, nr_calls);
16 BUG_ON((int)nr_calls < 0);
18 for ( ; nr_calls > 0; --nr_calls, ++call_list)
19 if (unlikely(call_list->result != (rc_list ? *rc_list++ : 0)))
25 /* A construct to ignore the return value of hypercall wrappers in a few
26 * exceptional cases (simply casting the function result to void doesn't
27 * avoid the compiler warning): */
28 #define VOID(expr) ((void)((expr)?:0))
30 #endif /* __XEN_HYPERCALL_H__ */