Skip to content

Commit

Permalink
hvf: Make hvf_set_phys_mem() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
agraf authored and pm215 committed Jun 3, 2021
1 parent 861457c commit 3f965ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion accel/hvf/hvf-accel-ops.c
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion include/sysemu/hvf_int.h
Expand Up @@ -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 *);
Expand Down

0 comments on commit 3f965ef

Please sign in to comment.