Message ID | 20180920123306.14772-19-yuehaibing@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-omap-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6F2496CB for <patchwork-linux-omap@patchwork.kernel.org>; Thu, 20 Sep 2018 12:49:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F4BD2C142 for <patchwork-linux-omap@patchwork.kernel.org>; Thu, 20 Sep 2018 12:49:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5344D2D45F; Thu, 20 Sep 2018 12:49:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 107962D459 for <patchwork-linux-omap@patchwork.kernel.org>; Thu, 20 Sep 2018 12:49:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387937AbeITScU (ORCPT <rfc822;patchwork-linux-omap@patchwork.kernel.org>); Thu, 20 Sep 2018 14:32:20 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12659 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387946AbeITScT (ORCPT <rfc822;linux-omap@vger.kernel.org>); Thu, 20 Sep 2018 14:32:19 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B52988052A598; Thu, 20 Sep 2018 20:48:51 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.399.0; Thu, 20 Sep 2018 20:48:48 +0800 From: YueHaibing <yuehaibing@huawei.com> To: <davem@davemloft.net>, <dmitry.tarnyagin@lockless.no>, <wg@grandegger.com>, <mkl@pengutronix.de>, <michal.simek@xilinx.com>, <hsweeten@visionengravers.com>, <madalin.bucur@nxp.com>, <pantelis.antoniou@gmail.com>, <claudiu.manoil@nxp.com>, <leoyang.li@nxp.com>, <linux@armlinux.org.uk>, <sammy@sammy.net>, <ralf@linux-mips.org>, <nico@fluxnic.net>, <steve.glendinning@shawell.net>, <f.fainelli@gmail.com>, <grygorii.strashko@ti.com>, <w-kwok2@ti.com>, <m-karicheri2@ti.com>, <t.sailer@alumni.ethz.ch>, <jreuter@yaina.de>, <kys@microsoft.com>, <haiyangz@microsoft.com>, <wei.liu2@citrix.com>, <paul.durrant@citrix.com>, <arvid.brodin@alten.se>, <pshelar@ovn.org> CC: <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>, <linux-can@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linuxppc-dev@lists.ozlabs.org>, <linux-mips@linux-mips.org>, <linux-omap@vger.kernel.org>, <linux-hams@vger.kernel.org>, <devel@linuxdriverproject.org>, <linux-usb@vger.kernel.org>, <xen-devel@lists.xenproject.org>, <dev@openvswitch.org>, YueHaibing <yuehaibing@huawei.com> Subject: [PATCH net-next 18/22] can: xilinx: fix return type of ndo_start_xmit function Date: Thu, 20 Sep 2018 20:33:02 +0800 Message-ID: <20180920123306.14772-19-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: <20180920123306.14772-1-yuehaibing@huawei.com> References: <20180920123306.14772-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: <linux-omap.vger.kernel.org> X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
net: fix return type of ndo_start_xmit function
|
expand
|
diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c index 045f084..6de5004 100644 --- a/drivers/net/can/xilinx_can.c +++ b/drivers/net/can/xilinx_can.c @@ -612,7 +612,7 @@ static int xcan_start_xmit_mailbox(struct sk_buff *skb, struct net_device *ndev) * * Return: NETDEV_TX_OK on success and NETDEV_TX_BUSY when the tx queue is full */ -static int xcan_start_xmit(struct sk_buff *skb, struct net_device *ndev) +static netdev_tx_t xcan_start_xmit(struct sk_buff *skb, struct net_device *ndev) { struct xcan_priv *priv = netdev_priv(ndev); int ret;
The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', which is a typedef for an enum type, so make sure the implementation in this driver has returns 'netdev_tx_t' value, and change the function return type to netdev_tx_t. Found by coccinelle. Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- drivers/net/can/xilinx_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)