The cast is just to prevent fallouts due to the Werror. rax is really an unsigned value, but int to unsigned promotion is mixed too many times to be easily fixed.
Signed-off-by: Andrea Bastoni <[email protected]> --- hypervisor/arch/x86/vcpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/arch/x86/vcpu.c b/hypervisor/arch/x86/vcpu.c index 7a6543bf..5dd23d49 100644 --- a/hypervisor/arch/x86/vcpu.c +++ b/hypervisor/arch/x86/vcpu.c @@ -194,7 +194,7 @@ void vcpu_handle_hypercall(void) guest_regs->rax = hypercall(code, guest_regs->rdi & arg_mask, guest_regs->rsi & arg_mask); - if (guest_regs->rax == -ENOSYS) + if ((int)guest_regs->rax == -ENOSYS) printk("CPU %d: Unknown hypercall %ld, RIP: 0x%016llx\n", cpu_id, code, vcpu_vendor_get_rip() - X86_INST_LEN_HYPERCALL); -- 2.28.0 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/20201028210933.138379-21-andrea.bastoni%40tum.de.
