summaryrefslogtreecommitdiffstats
path: root/hw/i386/acpi-build.c
diff options
context:
space:
mode:
authorGabriel L. Somlo2015-11-05 15:32:49 +0100
committerGerd Hoffmann2015-12-15 11:45:59 +0100
commit3f8752b4e5a3871f0d2963ab889be937d9a4226a (patch)
tree01fd3a682b4c1c5759831529b68981029f59313e /hw/i386/acpi-build.c
parentfw_cfg: amend callback behavior spec to once per select (diff)
downloadqemu-3f8752b4e5a3871f0d2963ab889be937d9a4226a.tar.gz
qemu-3f8752b4e5a3871f0d2963ab889be937d9a4226a.tar.xz
qemu-3f8752b4e5a3871f0d2963ab889be937d9a4226a.zip
fw_cfg: remove offset argument from callback prototype
Read callbacks are now only invoked at item selection, before any data is read. As such, the value of the offset argument passed to the callback will always be 0. Also, the two callback instances currently in use both leave their offset argument unused. This patch removes the offset argument from the fw_cfg read callback prototype, and from the currently available instances. The unused (write) callback prototype is also removed (write support was removed earlier, in commit 023e3148). Cc: Laszlo Ersek <lersek@redhat.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Marc MarĂ­ <markmb@redhat.com> Signed-off-by: Gabriel Somlo <somlo@cmu.edu> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Message-id: 1446733972-1602-4-git-send-email-somlo@cmu.edu Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/i386/acpi-build.c')
-rw-r--r--hw/i386/acpi-build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 95e0c657a7..29e30ce79a 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -1818,7 +1818,7 @@ static void acpi_ram_update(MemoryRegion *mr, GArray *data)
memory_region_set_dirty(mr, 0, size);
}
-static void acpi_build_update(void *build_opaque, uint32_t offset)
+static void acpi_build_update(void *build_opaque)
{
AcpiBuildState *build_state = build_opaque;
AcpiBuildTables tables;