[ofw] RE: Allow hw\mlx4\kernel\bus\drv\pci.c to compile without warnings
Smith, Stan
stan.smith at intel.com
Mon Jun 15 14:51:36 PDT 2009
Svn.2255
-----Original Message-----
From: Hefty, Sean
Sent: Monday, June 15, 2009 2:44 PM
To: Smith, Stan; Leonid Keller
Cc: ofw at lists.openfabrics.org
Subject: RE: Allow hw\mlx4\kernel\bus\drv\pci.c to compile without warnings
> 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