mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/misc/vmcoreinfo: Rename opaque pointer as 'opaque'
Both QEMUResetHandler and FWCfgWriteCallback take an opaque pointer argument, no need to cast. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20241219153857.57450-3-philmd@linaro.org>
This commit is contained in:
parent
3154922c7f
commit
924e1be175
1 changed files with 5 additions and 5 deletions
|
@ -18,17 +18,17 @@
|
||||||
#include "migration/vmstate.h"
|
#include "migration/vmstate.h"
|
||||||
#include "hw/misc/vmcoreinfo.h"
|
#include "hw/misc/vmcoreinfo.h"
|
||||||
|
|
||||||
static void fw_cfg_vmci_write(void *dev, off_t offset, size_t len)
|
static void fw_cfg_vmci_write(void *opaque, off_t offset, size_t len)
|
||||||
{
|
{
|
||||||
VMCoreInfoState *s = VMCOREINFO(dev);
|
VMCoreInfoState *s = opaque;
|
||||||
|
|
||||||
s->has_vmcoreinfo = offset == 0 && len == sizeof(s->vmcoreinfo)
|
s->has_vmcoreinfo = offset == 0 && len == sizeof(s->vmcoreinfo)
|
||||||
&& s->vmcoreinfo.guest_format != FW_CFG_VMCOREINFO_FORMAT_NONE;
|
&& s->vmcoreinfo.guest_format != FW_CFG_VMCOREINFO_FORMAT_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vmcoreinfo_reset(void *dev)
|
static void vmcoreinfo_reset(void *opaque)
|
||||||
{
|
{
|
||||||
VMCoreInfoState *s = VMCOREINFO(dev);
|
VMCoreInfoState *s = opaque;
|
||||||
|
|
||||||
s->has_vmcoreinfo = false;
|
s->has_vmcoreinfo = false;
|
||||||
memset(&s->vmcoreinfo, 0, sizeof(s->vmcoreinfo));
|
memset(&s->vmcoreinfo, 0, sizeof(s->vmcoreinfo));
|
||||||
|
@ -65,7 +65,7 @@ static void vmcoreinfo_realize(DeviceState *dev, Error **errp)
|
||||||
* This device requires to register a global reset because it is
|
* This device requires to register a global reset because it is
|
||||||
* not plugged to a bus (which, as its QOM parent, would reset it).
|
* not plugged to a bus (which, as its QOM parent, would reset it).
|
||||||
*/
|
*/
|
||||||
qemu_register_reset(vmcoreinfo_reset, dev);
|
qemu_register_reset(vmcoreinfo_reset, s);
|
||||||
vmcoreinfo_state = s;
|
vmcoreinfo_state = s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue