From: Jose Abreu Date: Wed, 29 May 2019 08:30:25 +0000 (+0200) Subject: net: stmmac: selftests: Fix sparse warning X-Git-Tag: v5.3-rc1~140^2~391^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d135dea53fa7e8c9a20ccbac9857e3b9a926f9f;p=thirdparty%2Fkernel%2Flinux.git net: stmmac: selftests: Fix sparse warning Variable shall be __be16. Fix it. Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support") Reported-by: kbuild test robot Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c index 33dc37c7e1c1b..9d9bad5d31bfa 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c @@ -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;