aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_kvm_arm64_syzos.h
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2024-07-29 19:42:19 +0200
committerAlexander Potapenko <glider@google.com>2024-08-05 14:51:16 +0000
commit8bd1b2a10a73fcf6fcc384cb9caf19123952a54c (patch)
treeba8e35f0b6e18c40b3b3ec56e330ed5a2957af39 /executor/common_kvm_arm64_syzos.h
parente35c337f639d751098651f73ba8223d12212d503 (diff)
executor: add missing static declarations in common_kvm_arm64_syzos.h
Diffstat (limited to 'executor/common_kvm_arm64_syzos.h')
-rw-r--r--executor/common_kvm_arm64_syzos.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/executor/common_kvm_arm64_syzos.h b/executor/common_kvm_arm64_syzos.h
index 022378b34..3df3a7d75 100644
--- a/executor/common_kvm_arm64_syzos.h
+++ b/executor/common_kvm_arm64_syzos.h
@@ -32,8 +32,8 @@ struct api_call_code {
uint32 insns[];
};
-void guest_uexit(uint64 exit_code);
-void guest_execute_code(uint32* insns, uint64 size);
+static void guest_uexit(uint64 exit_code);
+static void guest_execute_code(uint32* insns, uint64 size);
// Main guest function that performs necessary setup and passes the control to the user-provided
// payload.
@@ -64,7 +64,7 @@ GUEST_CODE static void guest_main(uint64 size)
};
}
-GUEST_CODE void guest_execute_code(uint32* insns, uint64 size)
+GUEST_CODE static void guest_execute_code(uint32* insns, uint64 size)
{
volatile void (*fn)() = (volatile void (*)())insns;
fn();
@@ -73,7 +73,7 @@ GUEST_CODE void guest_execute_code(uint32* insns, uint64 size)
// Perform a userspace exit that can be handled by the host.
// The host returns from ioctl(KVM_RUN) with kvm_run.exit_reason=KVM_EXIT_MMIO,
// and can handle the call depending on the data passed as exit code.
-GUEST_CODE void guest_uexit(uint64 exit_code)
+GUEST_CODE static void guest_uexit(uint64 exit_code)
{
volatile uint64* ptr = (volatile uint64*)ARM64_ADDR_UEXIT;
*ptr = exit_code;