qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eduardo Habkost <ehabkost@redhat.com>
To: qemu-devel@nongnu.org
Cc: Igor Mammedov <imammedo@redhat.com>, Alexander Graf <agraf@suse.de>
Subject: [Qemu-devel] [PATCH 3/4] ppc: use FWCfgState* instead of void* for fw_cfg data
Date: Fri,  7 Dec 2012 14:07:35 -0200	[thread overview]
Message-ID: <1354896456-21120-4-git-send-email-ehabkost@redhat.com> (raw)
In-Reply-To: <1354896456-21120-1-git-send-email-ehabkost@redhat.com>

There's no point in using void* if all functions dealing with that data
use FWCfgState*.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
Cc: Alexander Graf <agraf@suse.de>
---
 hw/ppc_newworld.c | 2 +-
 hw/ppc_oldworld.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c
index 664747e..426ea51 100644
--- a/hw/ppc_newworld.c
+++ b/hw/ppc_newworld.c
@@ -153,7 +153,7 @@ static void ppc_core99_init(QEMUMachineInitArgs *args)
     MemoryRegion *ide_mem[3];
     int ppc_boot_device;
     DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
-    void *fw_cfg;
+    FWCfgState *fw_cfg;
     void *dbdma;
     int machine_arch;
 
diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c
index e8138c0..9855dcd 100644
--- a/hw/ppc_oldworld.c
+++ b/hw/ppc_oldworld.c
@@ -96,7 +96,7 @@ static void ppc_heathrow_init(QEMUMachineInitArgs *args)
     MemoryRegion *escc_mem, *escc_bar = g_new(MemoryRegion, 1), *ide_mem[2];
     uint16_t ppc_boot_device;
     DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
-    void *fw_cfg;
+    FWCfgState *fw_cfg;
     void *dbdma;
 
     linux_boot = (kernel_filename != NULL);
-- 
1.7.11.7

  parent reply	other threads:[~2012-12-07 16:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-07 16:07 [Qemu-devel] [PATCH 0/4] use FWCfgState* instead of void* for fw_cfg data Eduardo Habkost
2012-12-07 16:07 ` [Qemu-devel] [PATCH 1/4] multiboot: use FWCfgState* as argument instead of void* Eduardo Habkost
2012-12-07 16:07 ` [Qemu-devel] [PATCH 2/4] pc: use FWCfgState* instead of void* for fw_cfg data Eduardo Habkost
2012-12-07 16:07 ` Eduardo Habkost [this message]
2012-12-07 18:32   ` [Qemu-devel] [PATCH 3/4] ppc: " Alexander Graf
2012-12-07 16:07 ` [Qemu-devel] [PATCH 4/4] sparc: " Eduardo Habkost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1354896456-21120-4-git-send-email-ehabkost@redhat.com \
    --to=ehabkost@redhat.com \
    --cc=agraf@suse.de \
    --cc=imammedo@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).