]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/acpi-build.c
fw_cfg: remove offset argument from callback prototype
authorGabriel L. Somlo <somlo@cmu.edu>
Thu, 5 Nov 2015 14:32:49 +0000 (09:32 -0500)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 15 Dec 2015 10:45:59 +0000 (11:45 +0100)
commit3f8752b4e5a3871f0d2963ab889be937d9a4226a
tree01fd3a682b4c1c5759831529b68981029f59313e
parent3bef7e8aab8af2f86c5785761c37e068428c689d
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>
hw/arm/virt-acpi-build.c
hw/i386/acpi-build.c
hw/nvram/fw_cfg.c
include/hw/nvram/fw_cfg.h