From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCD42C04AB3 for ; Wed, 29 May 2019 08:30:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A95DA20665 for ; Wed, 29 May 2019 08:30:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=synopsys.com header.i=@synopsys.com header.b="B4x35i2i" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726716AbfE2Iam (ORCPT ); Wed, 29 May 2019 04:30:42 -0400 Received: from smtprelay-out1.synopsys.com ([198.182.61.142]:41654 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbfE2Ial (ORCPT ); Wed, 29 May 2019 04:30:41 -0400 Received: from mailhost.synopsys.com (dc2-mailhost2.synopsys.com [10.12.135.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id D77A9C263B; Wed, 29 May 2019 08:30:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1559118623; bh=HWlisUVHIuO4P0hWOEPlpTin/ujXVBoRHkrNFSxF3W4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=B4x35i2i4K4mpXoLyav290RYtabrf3xTdgACbuCOiwPD/z9dBb7o/imrZ3pR8+vQN aR9gi1z8lxMd0NdDgAvxMn4N+YedBkH0TE3EGZPJfPFP4tarj24ROcRWxSAWujac80 M440wamPM/qsldzJqR+FEjh4uKo1j4KPknyolj5AdbiR5//pmULeIPRcRUWs73OLPp t9ZxG7jnGkOxYcwRK3n667JwsMBQmzLrn4rk58oRgxZb2wu4zJ6nEknYWO2UlVeP3a SoYvh/CMJ7fnYZ2FeZbLqm6yDzVeH6Gx6OMyCiTglJy9XFmsa8Me/QSObj5B5VnYR/ dnw/7fEeSMbdA== Received: from de02.synopsys.com (germany.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 3AD4AA009F; Wed, 29 May 2019 08:30:40 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 536713E88E; Wed, 29 May 2019 10:30:39 +0200 (CEST) From: Jose Abreu To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Jose Abreu , Joao Pinto , "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue Subject: [PATCH net-next 1/2] net: stmmac: selftests: Fix sparse warning Date: Wed, 29 May 2019 10:30:25 +0200 Message-Id: <6e6f527d5dcd92acaf9d21b2e5cc3a2ebfebf88b.1559118521.git.joabreu@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4