]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hvf: Make hvf_set_phys_mem() static
authorAlexander Graf <agraf@csgraf.de>
Thu, 3 Jun 2021 13:09:32 +0000 (14:09 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Jun 2021 15:43:27 +0000 (16:43 +0100)
The hvf_set_phys_mem() function is only called within the same file.
Make it static.

Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-id: 20210519202253.76782-6-agraf@csgraf.de
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
accel/hvf/hvf-accel-ops.c
include/sysemu/hvf_int.h

index c2136dfbb8c7ea337b8606afb55bf2dc0d5a9030..5bec7b4d6dced42ab19e0e9581d20178197bdacf 100644 (file)
@@ -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;
index ef84a24dd96864b456c2e361c555eb9479dab17a..d15fa3302a97c23c77677b20e97cf35e5370003c 100644 (file)
@@ -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 *);