Thread (10 messages) 10 messages, 4 authors, 2014-12-11

[PATCH v7 2/3] net: Add Keystone NetCP ethernet driver

flat view

From: davem@davemloft.net (David Miller)
Date: 2014-12-09 18:10:58
Also in: linux-devicetree, lkml, netdev

From: Murali Karicheri <redacted>
Date: Tue, 2 Dec 2014 16:41:42 -0500
quoted hunk
+static void set_pkt_info_le(u32 buff, u32 buff_len, u32 ndesc,
+			    struct knav_dma_desc *desc)
+{
+	desc->buff_len = cpu_to_le32(buff_len);
+	desc->buff = cpu_to_le32(buff);
+	desc->next_desc = cpu_to_le32(ndesc);
+}
The members of knav_dma_desc are "u32", so you are going to get tons of
static checker warnings from trying to assign cpu_to_le32()'s result
(which is a le32) into them.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help