Thread (1 message) 1 message, 1 author, 2015-06-16

Re: [PATCH 06/11] IB/cma: Refactor RDMA IP CM private-data parsing code

From: Haggai Eran <hidden>
Date: 2015-06-16 13:02:23
Also in: linux-rdma

On 16/06/2015 01:33, Hefty, Sean wrote:
quoted
-static int cma_save_net_info(struct rdma_cm_id *id, struct rdma_cm_id
*listen_id,
-			     struct ib_cm_event *ib_event)
+static u16 cma_port_from_service_id(__be64 service_id)
 {
-	struct cma_hdr *hdr;
+	return be64_to_cpu(service_id);
+}
Nit - Does the compiler not complain about the cast from u64 to u16?
Apparently it does, but only with W=3 (-Wconversion is included there).
W=3 produces about 6k warnings when compiling cma.c, so I don't usually
enable it.

I'll add a cast there to prevent the warning.

Haggai
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help