Commit 2d135dea authored by Jose Abreu's avatar Jose Abreu Committed by David S. Miller

net: stmmac: selftests: Fix sparse warning

Variable shall be __be16. Fix it.

Fixes: 091810db ("net: stmmac: Introduce selftests support")
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarJose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 32707c4d
......@@ -114,7 +114,7 @@ static struct sk_buff *stmmac_test_get_udp_skb(struct stmmac_priv *priv,
}
if (attr->vlan) {
u16 *tag, *proto;
__be16 *tag, *proto;
if (!attr->remove_sa) {
tag = (void *)ehdr + ETH_HLEN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment