From 9b7c3903875ea246fda1aeac2cf62d7bb74b157b Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Fri, 17 Oct 2025 15:08:11 +0200 Subject: executor: common_kvm.h: fix compilation Add #if checks to define executor_fn_guest_addr() for __NR_syz_kvm_setup_cpu and __NR_syz_kvm_setup_syzos_vm. This fixes a compilation error spotted by csource_test.go --- executor/common_kvm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/common_kvm.h') diff --git a/executor/common_kvm.h b/executor/common_kvm.h index 5be283046..68c5559d8 100644 --- a/executor/common_kvm.h +++ b/executor/common_kvm.h @@ -8,7 +8,7 @@ #include "common_kvm_syzos.h" #include "kvm.h" -#if SYZ_EXECUTOR || __NR_syz_kvm_add_vcpu +#if SYZ_EXECUTOR || __NR_syz_kvm_add_vcpu || __NR_syz_kvm_setup_cpu || __NR_syz_kvm_setup_syzos_vm extern char* __start_guest; // executor_fn_guest_addr() is compiled into both the host and the guest code. -- cgit mrf-deployment