aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
diff options
context:
space:
mode:
authorJose Abreu <Jose.Abreu@synopsys.com>2019-05-29 10:30:25 +0200
committerDavid S. Miller <davem@davemloft.net>2019-05-30 12:58:54 -0700
commit2d135dea53fa7e8c9a20ccbac9857e3b9a926f9f (patch)
tree14665448fd0dea9d893d816c1f00e7d87960a872 /drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
parentinet: frags: Remove unnecessary smp_store_release/READ_ONCE (diff)
downloadlinux-dev-2d135dea53fa7e8c9a20ccbac9857e3b9a926f9f.tar.xz
linux-dev-2d135dea53fa7e8c9a20ccbac9857e3b9a926f9f.zip
net: stmmac: selftests: Fix sparse warning
Variable shall be __be16. Fix it. Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Jose 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: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
index 33dc37c7e1c1..9d9bad5d31bf 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;