[openib-general] Re: [openib-commits] r2195 - in gen2/trunk/src/linux-kernel/infiniband: core include
Roland Dreier
roland at topspin.com
Wed Apr 20 13:24:06 PDT 2005
Tom> Causes build warning on 64bit:
Tom> CC [M] drivers/infiniband/core/verbs.o
Tom> /build1/tduffy/openib-work/linux-2.6.11-openib/drivers/infiniband/core/verbs.c:
Tom> In function âib_create_ah_from_wcâ:
Tom> /build1/tduffy/openib-work/linux-2.6.11-openib/drivers/infiniband/core/verbs.c:115:
Tom> warning: cast from pointer to integer of different size
Looks like a real bug -- I think
flow_class = be32_to_cpu(&grh->version_tclass_flow);
should be
flow_class = be32_to_cpu(grh->version_tclass_flow);
(ie no "&" -- we want to swap the value, not the address!)
- R.
More information about the general
mailing list