diff options
| author | Alexander Potapenko <glider@google.com> | 2025-10-23 16:32:28 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-10-27 09:00:11 +0000 |
| commit | 7dc1cb33ae76d43d894dd96c2c4435a6a26b963d (patch) | |
| tree | 54b6dfb76baf44ea8aff75832ce41f72fc9e0605 /executor/common_kvm_arm64_syzos.h | |
| parent | c0460fcde7051a8d07612ec2a17718d3c3019bb0 (diff) | |
executor: add include guards to KVM headers
Not having these results in three copies of every KVM-related #define
in each reproducer.
Diffstat (limited to 'executor/common_kvm_arm64_syzos.h')
| -rw-r--r-- | executor/common_kvm_arm64_syzos.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/executor/common_kvm_arm64_syzos.h b/executor/common_kvm_arm64_syzos.h index 0a9e3391f..2ef7819d9 100644 --- a/executor/common_kvm_arm64_syzos.h +++ b/executor/common_kvm_arm64_syzos.h @@ -1,6 +1,9 @@ // Copyright 2024 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. +#ifndef EXECUTOR_COMMON_KVM_ARM64_SYZOS_H +#define EXECUTOR_COMMON_KVM_ARM64_SYZOS_H + // This file provides guest code running inside the ARM64 KVM. #include "common_kvm_syzos.h" @@ -1348,3 +1351,5 @@ GUEST_CODE static void guest_prepare_its(int nr_cpus, int nr_devices, int nr_eve guest_setup_its_mappings(ARM64_ADDR_ITS_CMDQ_BASE, ARM64_ADDR_ITS_ITT_TABLES, nr_events, nr_devices, nr_cpus); guest_invalidate_all_rdists(ARM64_ADDR_ITS_CMDQ_BASE, nr_cpus); } + +#endif // EXECUTOR_COMMON_KVM_ARM64_SYZOS_H
\ No newline at end of file |
