aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_kvm_ppc64.h
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2025-10-23 16:32:28 +0200
committerAlexander Potapenko <glider@google.com>2025-10-27 09:00:11 +0000
commit7dc1cb33ae76d43d894dd96c2c4435a6a26b963d (patch)
tree54b6dfb76baf44ea8aff75832ce41f72fc9e0605 /executor/common_kvm_ppc64.h
parentc0460fcde7051a8d07612ec2a17718d3c3019bb0 (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_ppc64.h')
-rw-r--r--executor/common_kvm_ppc64.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/executor/common_kvm_ppc64.h b/executor/common_kvm_ppc64.h
index 687c2bbd0..6d23ef89a 100644
--- a/executor/common_kvm_ppc64.h
+++ b/executor/common_kvm_ppc64.h
@@ -1,6 +1,9 @@
// Copyright 2020 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_PPC64_H
+#define EXECUTOR_COMMON_KVM_PPC64_H
+
// This file is shared between executor and csource package.
// Implementation of syz_kvm_setup_cpu pseudo-syscall.
@@ -409,3 +412,5 @@ static volatile long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volat
return 0;
}
+
+#endif // EXECUTOR_COMMON_KVM_PPC64_H