mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
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>
This commit is contained in:
parent
a88f488857
commit
9cda779cc2
1 changed files with 1 additions and 1 deletions
|
@ -614,7 +614,7 @@ static ssize_t ucma_query_route(struct ucma_file *file,
|
||||||
if (!ctx->cm_id->device)
|
if (!ctx->cm_id->device)
|
||||||
goto out;
|
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;
|
resp.port_num = ctx->cm_id->port_num;
|
||||||
switch (rdma_node_get_transport(ctx->cm_id->device->node_type)) {
|
switch (rdma_node_get_transport(ctx->cm_id->device->node_type)) {
|
||||||
case RDMA_TRANSPORT_IB:
|
case RDMA_TRANSPORT_IB:
|
||||||
|
|
Loading…
Reference in a new issue