Skip to content

Commit

Permalink
memory: drop needless argument
Browse files Browse the repository at this point in the history
The argument is unused since commit bdc4464 ("cpu: Use QTAILQ for CPU list").

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231009075231.150568-1-marcandre.lureau@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
  • Loading branch information
elmarco authored and philmd committed Oct 20, 2023
1 parent d3b88b9 commit 85f3d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/memory_mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void guest_phys_blocks_append(GuestPhysBlockList *list)
memory_listener_unregister(&g.listener);
}

static CPUState *find_paging_enabled_cpu(CPUState *start_cpu)
static CPUState *find_paging_enabled_cpu(void)
{
CPUState *cpu;

Expand All @@ -312,7 +312,7 @@ void qemu_get_guest_memory_mapping(MemoryMappingList *list,
GuestPhysBlock *block;
ram_addr_t offset, length;

first_paging_enabled_cpu = find_paging_enabled_cpu(first_cpu);
first_paging_enabled_cpu = find_paging_enabled_cpu();
if (first_paging_enabled_cpu) {
for (cpu = first_paging_enabled_cpu; cpu != NULL;
cpu = CPU_NEXT(cpu)) {
Expand Down

0 comments on commit 85f3d50

Please sign in to comment.