Received: by 10.192.165.148 with SMTP id m20csp4675038imm; Tue, 24 Apr 2018 06:44:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx49e9VX8T6hbH4ouvvhP5PHltF36tOPmdDsC20W34HDczK3Wl5MkjV1fBMZ4nFU5RLYw9GBK X-Received: by 10.99.180.65 with SMTP id n1mr20498611pgu.342.1524577476131; Tue, 24 Apr 2018 06:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524577476; cv=none; d=google.com; s=arc-20160816; b=q4YppneFe4I+Oaq9Oqeshy0ILaasWFKYBsgWXruY0J/B3+zFm4viY4rHiQvNBrtWI/ gs3TSe+FBunlkTsBEM7fhmU52MXZfLC6XMwQKr/vhcL2WjHAbFmtUvirGllWVNgqxONr RvhyVCNLGqNl0eJEffjUbVNgEBOADtSTkL8KJjBc6NajdPoWzvxISc6LGHWNIFJ6UK0c QcFv4Dcj7Djh70XftnJraP/80ZX9XsZ1Zuw58FenFWWpV5VZ0OEQBtQNOu2WxmTznWSA XyBizfS5rNP7cZZyxVlNAsNjYBGzoqRmhYrIY743cfdBM7cbN2ckKjnKy8tSe9Px75Zm gxzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=V20IyKKvh0O2PHi6TbYZzmhkigs2s7v+9PQJWmwAyho=; b=mOf070OHVQzkAZVh9GonRcQbblNyuDSKI2B1uZGagULtXcsAVBYiUAyjZpzAofDGgC DXZ9CKO8XluBh0gJXPa3taAEbpkQkEekDl8fhDEF8cCER2Jk8v4GpUDODxh/l6PwzJlW fd8K9+JfqcwFWeiorK+CE4/Qu0s52qdVk8GgAUwdiwd8wol6Zd1fh0GtPNlJwxiYfUtp 7nfQB02qKBOgut5wcXoJGctQtNA4EShpY6U+T2So6XSvLi3Z8YmIXCbKhGgVcst9SKS7 MZsGaG4PNEXglDfRMoL8mUmpAGKl8Xen05Pe6Ra157+ZChJHCvOmme4zu4Wu0Q7Kz18U vFxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tloBL7Ad; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f38-v6si12571834plb.44.2018.04.24.06.44.21; Tue, 24 Apr 2018 06:44:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tloBL7Ad; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933760AbeDXNQ5 (ORCPT + 99 others); Tue, 24 Apr 2018 09:16:57 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:52077 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933721AbeDXNQt (ORCPT ); Tue, 24 Apr 2018 09:16:49 -0400 Received: by mail-wm0-f65.google.com with SMTP id j4so906866wme.1; Tue, 24 Apr 2018 06:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=V20IyKKvh0O2PHi6TbYZzmhkigs2s7v+9PQJWmwAyho=; b=tloBL7AdoD7JFC6Jj+N1MHdzshqkmRrZ4xvNkEwHdd/QXYLnQflyTvsvvF+bLA54+z +FdNW1KWyJIfKggDT4fjPa3pjbHUF05/+LS17iujCZibBg8+Z5AM+ngt05NTVzmzttw9 JA5ELjxbVyY/6HOTqD4pRdXM0iI6p682Rdkt0ndWZQr01n91NHHmWp+TX7LwXIY8R5gS YFIwoLh00ZXryYd1iXmHG3h9YxecID0lCTO4uVMalHL4yOa8JGY2HIm60AIUaWrqnqlQ DTjfvtXI4DwfxXQ2vIjC/8L8Ywox4PwtQ00GI9UkSrmRyRCasCGz+6Uh1BSPcUUh+e5J EPXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=V20IyKKvh0O2PHi6TbYZzmhkigs2s7v+9PQJWmwAyho=; b=lJjg5HzDIjo+PbtNjyIYTX7AcAsIYVYMLuP0FVlCA+CzdSL0hudbIjVhdfQnV0tdHg HN9xqGr7SXzR08szLwMbVgr22cKYY0CaIH47+balJNb5tRxzKrVEIiI21cukqArQtbx8 KMI13YTejNUrcv/WQrbKGjmUjohdOVbOgcbEnYbdjeQwhcRxqCcwSDlXH41gPy8Y4VSG rr0l6u4kjydlvNffE6mcphVSBWlLAysqtUqolCdIfXTYxR35HTPfwUqzqeTWKRnxVD4t EEblgx3v398herVRuG0G+OiDvWk72DfeBVQZhpiSBuUYJySL+tY9km+a9vi1zthvd38L BYMA== X-Gm-Message-State: ALQs6tA1gE2KrxMXHQKrHVF/UKDgpGt8nT//n9UsZxIc5ooYevlfnVtF Xgcw32r90cWh9ed8DUxWCxMJo7mxqFc= X-Received: by 10.80.206.68 with SMTP id k4mr33280022edj.300.1524575808269; Tue, 24 Apr 2018 06:16:48 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id p1sm8000975edm.0.2018.04.24.06.16.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:16:47 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Yisen Zhuang , Salil Mehta , netdev@vger.kernel.org Subject: [PATCH] net: hip04: fix hip04_mac_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:16:46 +0200 Message-Id: <20180424131647.3905-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', which is a typedef for an enum type, but the implementation in this driver returns an 'int'. Fix this by returning 'netdev_tx_t' in this driver too. Signed-off-by: Luc Van Oostenryck --- drivers/net/ethernet/hisilicon/hip04_eth.c | 2 +- drivers/net/ethernet/hisilicon/hix5hd2_gmac.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hip04_eth.c b/drivers/net/ethernet/hisilicon/hip04_eth.c index 340e28211..8acf615cd 100644 --- a/drivers/net/ethernet/hisilicon/hip04_eth.c +++ b/drivers/net/ethernet/hisilicon/hip04_eth.c @@ -422,7 +422,7 @@ static void hip04_start_tx_timer(struct hip04_priv *priv) ns, HRTIMER_MODE_REL); } -static int hip04_mac_start_xmit(struct sk_buff *skb, struct net_device *ndev) +static netdev_tx_t hip04_mac_start_xmit(struct sk_buff *skb, struct net_device *ndev) { struct hip04_priv *priv = netdev_priv(ndev); struct net_device_stats *stats = &ndev->stats; diff --git a/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c b/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c index 25a6c8722..aab6fb10a 100644 --- a/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c +++ b/drivers/net/ethernet/hisilicon/hix5hd2_gmac.c @@ -736,7 +736,7 @@ static int hix5hd2_fill_sg_desc(struct hix5hd2_priv *priv, return 0; } -static int hix5hd2_net_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t hix5hd2_net_xmit(struct sk_buff *skb, struct net_device *dev) { struct hix5hd2_priv *priv = netdev_priv(dev); struct hix5hd2_desc *desc; -- 2.17.0