[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 05/19] hvf: Make hvf_set_phys_mem() static
From: |
Alexander Graf |
Subject: |
[PATCH v8 05/19] hvf: Make hvf_set_phys_mem() static |
Date: |
Wed, 19 May 2021 22:22:39 +0200 |
The hvf_set_phys_mem() function is only called within the same file.
Make it static.
Signed-off-by: Alexander Graf <agraf@csgraf.de>
---
accel/hvf/hvf-accel-ops.c | 2 +-
include/sysemu/hvf_int.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c
index c2136dfbb8..5bec7b4d6d 100644
--- a/accel/hvf/hvf-accel-ops.c
+++ b/accel/hvf/hvf-accel-ops.c
@@ -114,7 +114,7 @@ static int do_hvf_set_memory(hvf_slot *slot,
hv_memory_flags_t flags)
return 0;
}
-void hvf_set_phys_mem(MemoryRegionSection *section, bool add)
+static void hvf_set_phys_mem(MemoryRegionSection *section, bool add)
{
hvf_slot *mem;
MemoryRegion *area = section->mr;
diff --git a/include/sysemu/hvf_int.h b/include/sysemu/hvf_int.h
index ef84a24dd9..d15fa3302a 100644
--- a/include/sysemu/hvf_int.h
+++ b/include/sysemu/hvf_int.h
@@ -43,7 +43,6 @@ struct HVFState {
};
extern HVFState *hvf_state;
-void hvf_set_phys_mem(MemoryRegionSection *, bool);
void assert_hvf_ok(hv_return_t ret);
hvf_slot *hvf_find_overlap_slot(uint64_t, uint64_t);
int hvf_put_registers(CPUState *);
--
2.30.1 (Apple Git-130)
- [PATCH v8 07/19] hvf: Split out common code on vcpu init and destroy, (continued)
- [PATCH v8 07/19] hvf: Split out common code on vcpu init and destroy, Alexander Graf, 2021/05/19
- [PATCH v8 10/19] hvf: Remove hvf-accel-ops.h, Alexander Graf, 2021/05/19
- [PATCH v8 12/19] hvf: Simplify post reset/init/loadvm hooks, Alexander Graf, 2021/05/19
- [PATCH v8 08/19] hvf: Use cpu_synchronize_state(), Alexander Graf, 2021/05/19
- [PATCH v8 06/19] hvf: Remove use of hv_uvaddr_t and hv_gpaddr_t, Alexander Graf, 2021/05/19
- [PATCH v8 05/19] hvf: Make hvf_set_phys_mem() static,
Alexander Graf <=
- [PATCH v8 14/19] arm/hvf: Add a WFI handler, Alexander Graf, 2021/05/19
- [PATCH v8 11/19] hvf: Introduce hvf vcpu struct, Alexander Graf, 2021/05/19
- [PATCH v8 13/19] hvf: Add Apple Silicon support, Alexander Graf, 2021/05/19
- [PATCH v8 15/19] hvf: arm: Implement -cpu host, Alexander Graf, 2021/05/19
- [PATCH v8 16/19] hvf: arm: Implement PSCI handling, Alexander Graf, 2021/05/19