> Today's linux-next build (powerpc ppc64_defconfig) produced this new
 > warning:
 > 
 > drivers/infiniband/hw/ehca/hcp_phyp.c: In function 'hcp_galpas_ctor':
 > drivers/infiniband/hw/ehca/hcp_phyp.c:65: warning: assignment makes integer 
 > from pointer without a cast
 > 
 > Caused by commit 2bd93ed8b59d9bf8b918a0fa04be50482906c16b ("IB/ehca:
 > Remove unnecessary memory operations for userspace queue pairs").

Thanks for pointing this out.  I rolled the below into the patch in
question, which should fix this.

diff --git a/drivers/infiniband/hw/ehca/hcp_phyp.c 
b/drivers/infiniband/hw/ehca/hcp_phyp.c
index fc3a245..b3e0e72 100644
--- a/drivers/infiniband/hw/ehca/hcp_phyp.c
+++ b/drivers/infiniband/hw/ehca/hcp_phyp.c
@@ -62,7 +62,7 @@ int hcp_galpas_ctor(struct h_galpas *galpas, int is_user,
                if (ret)
                        return ret;
        } else
-               galpas->kernel.fw_handle = NULL;
+               galpas->kernel.fw_handle = 0;
 
        galpas->user.fw_handle = paddr_user;
 
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to