summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c
diff options
context:
space:
mode:
authorCamelia Groza <camelia.groza@nxp.com>2017-09-04 11:35:21 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-09-25 07:25:49 (GMT)
commit291bafd9a4c355cec95ba07bbd6c028c52dc611e (patch)
tree85a884aaa6ee38d65bfe1ebcb793ecd9485a5d6e /drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c
parent0181f24ddf06f6d33a9307f35fa90cb529060210 (diff)
downloadlinux-291bafd9a4c355cec95ba07bbd6c028c52dc611e.tar.xz
sdk_dpaa: ls1043a errata: fix arm32 build
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c')
-rw-r--r--drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c
index 4dd8bf1..45fd796 100644
--- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c
+++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_sg.c
@@ -761,7 +761,7 @@ static bool a010022_check_skb(struct sk_buff *skb, struct dpa_priv_s *priv)
skb_frag_t *frag;
/* Check if the headroom is aligned */
- if (((u16)skb->data - priv->tx_headroom) %
+ if (((uintptr_t)skb->data - priv->tx_headroom) %
priv->buf_layout[TX].data_align != 0)
return true;