From: Roland Dreier Date: Thu, 17 Apr 2008 04:01:07 +0000 (-0700) Subject: RDMA/ucma: Endian annotation X-Git-Tag: v2.6.26-rc1~1156^2~93 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9cda779cc2d0acf30e0fda67897a14c78b34f5a3;p=linux-2.6-omap-h63xx.git RDMA/ucma: Endian annotation Add __force cast of node_guid to __u64, since we are sticking it into a structure whose definition is shared with userspace. Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c index 15937eb38aa..ca4cf3a511a 100644 --- a/drivers/infiniband/core/ucma.c +++ b/drivers/infiniband/core/ucma.c @@ -614,7 +614,7 @@ static ssize_t ucma_query_route(struct ucma_file *file, if (!ctx->cm_id->device) goto out; - resp.node_guid = ctx->cm_id->device->node_guid; + resp.node_guid = (__force __u64) ctx->cm_id->device->node_guid; resp.port_num = ctx->cm_id->port_num; switch (rdma_node_get_transport(ctx->cm_id->device->node_type)) { case RDMA_TRANSPORT_IB: