From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR54M-0008K3-Jj for qemu-devel@nongnu.org; Wed, 24 Oct 2012 13:48:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TR54K-0002r1-HH for qemu-devel@nongnu.org; Wed, 24 Oct 2012 13:48:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TR54K-0002qY-7r for qemu-devel@nongnu.org; Wed, 24 Oct 2012 13:48:40 -0400 From: Eduardo Habkost Date: Wed, 24 Oct 2012 15:49:48 -0200 Message-Id: <1351101001-14589-15-git-send-email-ehabkost@redhat.com> In-Reply-To: <1351101001-14589-1-git-send-email-ehabkost@redhat.com> References: <1351101001-14589-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 14/27] pc: use FWCfgState* instead of void* for fw_cfg data List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Paolo Bonzini I don't know why the code uses void* if the FWCfgState typedef is declared at the same header where fw_cfg_init() and other fw_cfg_*() functions are declared. This changes the code to use FWCfgState* instead of void* in the PC initialization code. Signed-off-by: Eduardo Habkost --- hw/pc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index dce9ce1..4e971c8 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -570,9 +570,9 @@ int e820_add_entry(uint64_t address, uint64_t length, uint32_t type) return index; } -static void *bochs_bios_init(void) +static FWCfgState *bochs_bios_init(void) { - void *fw_cfg; + FWCfgState *fw_cfg; uint8_t *smbios_table; size_t smbios_len; uint64_t *numa_fw_cfg; @@ -638,7 +638,7 @@ static long get_file_size(FILE *f) return size; } -static void load_linux(void *fw_cfg, +static void load_linux(FWCfgState *fw_cfg, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, @@ -881,7 +881,7 @@ void *pc_memory_init(PCInitArgs *args) int linux_boot, i; MemoryRegion *ram, *option_rom_mr; MemoryRegion *ram_below_4g, *ram_above_4g; - void *fw_cfg; + FWCfgState *fw_cfg; linux_boot = (args->qemu_args->kernel_filename != NULL); -- 1.7.11.7