[ofw] Allow hw\mlx4\kernel\bus\drv\pci.c to compile without warnings

Smith, Stan stan.smith at intel.com
Mon Jun 15 14:38:43 PDT 2009


Hi Leo,
  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]));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pci.c.patch
Type: application/octet-stream
Size: 187 bytes
Desc: pci.c.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090615/49dc692c/attachment.obj>


More information about the ofw mailing list