On Mon, Jan 04, 2010 at 03:56:50PM +0100, Gerd Hoffmann wrote: > On 12/24/09 09:09, Isaku Yamahata wrote: >> The argument will be used later to remove global variable. > >> -static int piix4_device_hotplug(PCIDevice *dev, int state); >> +static int piix4_device_hotplug(void *opaque, PCIDevice *dev, int state); > > You are using that to pass the piix4-pm device state. How about using > "DeviceState*" instead of "void*" then?
Ok. I'll use DeviceState*. -- yamahata