diff options
| author | Alexander Potapenko <glider@google.com> | 2025-10-17 15:08:11 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-10-17 13:30:07 +0000 |
| commit | 9b7c3903875ea246fda1aeac2cf62d7bb74b157b (patch) | |
| tree | eaf1f7ed957742c9963b0353134bc0c1d0e69503 /executor | |
| parent | cf9a3399f1af3f55078b0ccc4360ea0948b8b8da (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
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common_kvm.h | 2 |
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. |
