aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2025-10-17 15:08:11 +0200
committerAlexander Potapenko <glider@google.com>2025-10-17 13:30:07 +0000
commit9b7c3903875ea246fda1aeac2cf62d7bb74b157b (patch)
treeeaf1f7ed957742c9963b0353134bc0c1d0e69503
parentcf9a3399f1af3f55078b0ccc4360ea0948b8b8da (diff)
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
-rw-r--r--executor/common_kvm.h2
1 files changed, 1 insertions, 1 deletions
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.