Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp573899imm; Wed, 26 Sep 2018 03:34:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV6206ar4SiA/9cLcdbp6WYP9XkXjlcfPCWZetbhdZnQSrwihc2EJnXFUskRhZ/2r1opZ6aHo X-Received: by 2002:a63:6ec4:: with SMTP id j187-v6mr5112799pgc.3.1537958041267; Wed, 26 Sep 2018 03:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537958041; cv=none; d=google.com; s=arc-20160816; b=Ee/KVUcIEGWF1wsCrDNHTU0IGN2ruoNteA9LN7Ib+DH0y/rv4sfaQKIRsQ85LuZgRY FkseShRnLA/fjoWU7EtbecSglAVtg2lIIOkqErpw2E46onT8AVoocoeWY7pBVQnHYF4u VSt4tJxnFtwPjIjUYu1p4TkpLQzKhsBoAtofKHbnQ3i40FnWqNqEhPRjFri4bsS2T9Ac CtQ3fNligIRAI06KL6MWGqCHiyLpNdwqms2quvKmFxZ0LxO6y4KInUdis8yP4didlp3H D3iu7T90IOulb4x0R0sOk+XpGxzAaFdgKew1rPEUlfHB0TcFxv2HaOXcHwBw5J6NhzwU 5QEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=oGCbmXHc385q8Hn02U4p0g9VMsa7qzcKsbbrmkaxCQs=; b=HOPWCiENzKV9qThBDoJRyoNHg4+WUkh5KRgDuKZiw4cDMZszKTbBnni87kTJMsphS5 Vk/VSWHq200WdBKg1p1bfk1Ze/5dx5yH12zgttSnifS9e3QdVa84r76J0OexV0g7Qu+V rVY1+p/9UPBunXJqmcpiOpzvXwdFjw9c4Vamo8y2v9QAnPHPolD9VC/ov5QaEc3XJIvL HoVkKw0ocHn+6vmliE9NVFeiK4TqwJI3xpnVTXAGfJkq2J+pVlM4UtXFwI9ybgSOD+g2 eQUUFGEz3XzkRGlbEUWrLnM7umtqcNU87hWwrMwyHYd4MJOwBWot+p3RUU96g1TYcBAK KZwg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10-v6si4228482pgv.374.2018.09.26.03.33.45; Wed, 26 Sep 2018 03:34:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727527AbeIZQpM (ORCPT + 99 others); Wed, 26 Sep 2018 12:45:12 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13122 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727003AbeIZQpM (ORCPT ); Wed, 26 Sep 2018 12:45:12 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 671825CAA2D6A; Wed, 26 Sep 2018 18:32:51 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.399.0; Wed, 26 Sep 2018 18:32:46 +0800 From: YueHaibing To: , , , CC: , , , , YueHaibing Subject: [PATCH net-next] can: xilinx: fix return type of ndo_start_xmit function Date: Wed, 26 Sep 2018 18:32:29 +0800 Message-ID: <20180926103229.13204-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected 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, 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 --- drivers/net/can/xilinx_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.8.3.1