[ofw] RE: Allow hw\mlx4\kernel\bus\drv\pci.c to compile without warnings
Leonid Keller
leonid at mellanox.co.il
Tue Jun 16 00:38:02 PDT 2009
Thank you.
> -----Original Message-----
> From: Smith, Stan [mailto:stan.smith at intel.com]
> Sent: Tuesday, June 16, 2009 12:52 AM
> To: Hefty, Sean; Leonid Keller
> Cc: ofw at lists.openfabrics.org
> Subject: RE: Allow hw\mlx4\kernel\bus\drv\pci.c to compile
> without warnings
>
> 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