aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2008-04-17 00:01:07 -0400
committerRoland Dreier <rolandd@cisco.com>2008-04-17 00:01:07 -0400
commit9cda779cc2d0acf30e0fda67897a14c78b34f5a3 (patch)
treead01af2178a494a5046e49c2a095b3ee577cf210 /drivers/infiniband
parenta88f488857cd2e54789791d2b5e8d116721d5cb7 (diff)
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 <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/ucma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
index 15937eb38aae..ca4cf3a511ab 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,
614 if (!ctx->cm_id->device) 614 if (!ctx->cm_id->device)
615 goto out; 615 goto out;
616 616
617 resp.node_guid = ctx->cm_id->device->node_guid; 617 resp.node_guid = (__force __u64) ctx->cm_id->device->node_guid;
618 resp.port_num = ctx->cm_id->port_num; 618 resp.port_num = ctx->cm_id->port_num;
619 switch (rdma_node_get_transport(ctx->cm_id->device->node_type)) { 619 switch (rdma_node_get_transport(ctx->cm_id->device->node_type)) {
620 case RDMA_TRANSPORT_IB: 620 case RDMA_TRANSPORT_IB: