[ofw] RE: Allow hw\mlx4\kernel\bus\drv\pci.c to compile without warnings
Sean Hefty
sean.hefty at intel.com
Mon Jun 15 14:43:41 PDT 2009
> pci.c @ line 556 needs a (char*) cast on &vpd[3] in order to build in the x64
>build environment without warnings which kill the build.
>
>Stan.
>
>556c556,557
>< ("Found VPD of size %d, beginning with '%s'\n",
>*p_vpd_size, &vpd[3]));
>---
>> ("Found VPD of size %d, beginning with '%s'\n",
>> *p_vpd_size, (char*)&vpd[3]));
What is vpd array, and why is it being used as a string if it isn't already char
*? (I don't see this in my tree, but I haven't updated in a couple of days.)
More information about the ofw
mailing list