diff options
author | Roland Dreier <rolandd@cisco.com> | 2008-04-16 21:01:07 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-16 21:01:07 -0700 |
commit | 9cda779cc2d0acf30e0fda67897a14c78b34f5a3 (patch) | |
tree | ad01af2178a494a5046e49c2a095b3ee577cf210 /drivers/infiniband/core | |
parent | a88f488857cd2e54789791d2b5e8d116721d5cb7 (diff) | |
download | lwn-9cda779cc2d0acf30e0fda67897a14c78b34f5a3.tar.gz lwn-9cda779cc2d0acf30e0fda67897a14c78b34f5a3.zip |
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/core')
-rw-r--r-- | drivers/infiniband/core/ucma.c | 2 |
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, 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: |