Received: by 10.192.165.148 with SMTP id m20csp2617449imm; Thu, 26 Apr 2018 14:15:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpIu15LE6ezuGX5g/PPAKA98sa/xH+cxEi5OMVqAET5JkHt+ZfQrh9xXZkwxCCnrA9kVp/f X-Received: by 10.98.112.2 with SMTP id l2mr3345976pfc.40.1524777336660; Thu, 26 Apr 2018 14:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524777336; cv=none; d=google.com; s=arc-20160816; b=yYN3fVNheD6XQSjTM31hfzX3nDqnn9eYyOvOxzMs7WDn2W1U6hidUyCc9rYBNS19I0 RbcYDQPLSDk2Rgz+++QCAJ9BXbqjTekHTqVRxgV/kJrdKu8lwkbt+VsE9fT5oOnmVDto VgYtxuRUE1sur0SKLoUnLxZ80ltmoUi99MEqLtZweaCJpBiMQvDIH+KYXDBo7JsVdvGf Rd2X3bLb1dnriZpDIxVSNNOY5fPgvMp8MUuc67Ldanxz9ET+kTLOAgtsdn3Y36IQBu90 k48nA9ctF7mOPaSgNaY7UNJNrj4OYT46QMXANWTdfYujcRuPj2KVP2gBEyj9jUYKBSZU +ldQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=z8sxuT/SURWt0NbMlXvT+ckxpwyNg6i12smirIkDOgs=; b=ZZxg4acBdATqHEpV7Gmyhgl/u/Bz8vGzHt0ok8Guuc677VGajcNvWhv2wK5iDUM6VC gPknq/KzDspm3fiBy76T4w381HEeiBHfa+S2qiCFbpGvMrh1xtMzkheLB+q9DPVVWWFK IUbOrIktBRad9L+3gelU4SPxWQQUkQ9kXHXXgzx0me8EpTY/GxTA2Cm+1Q84ZZqb+v1Q cvuMGqRxxRPXe1zSkV9J73Wfu4h2mZMlu8pjOJL2i3XXK3X+7OfwfwMPx0HNpF8dD9em eM7pP1rB4fI8zChsVJn+IfFIZChIUVSlC18w810dCdfFnK6HXCVZwy1J6LJX2mvOlDCL ZgVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aS7u0jUV; 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 1-v6si15286577plj.122.2018.04.26.14.15.22; Thu, 26 Apr 2018 14:15: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=aS7u0jUV; 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 S1756579AbeDZVNx (ORCPT + 99 others); Thu, 26 Apr 2018 17:13:53 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:37616 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756187AbeDZVNt (ORCPT ); Thu, 26 Apr 2018 17:13:49 -0400 Received: by mail-wm0-f68.google.com with SMTP id l1so7172wmb.2; Thu, 26 Apr 2018 14:13:48 -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:in-reply-to:references; bh=z8sxuT/SURWt0NbMlXvT+ckxpwyNg6i12smirIkDOgs=; b=aS7u0jUV0ClHhECe6+bDxM5ytOvH89YLWVCHPfWNN0xVVN59/MF92+TQyU89YtJ0fL E+a8Lx8uIZYmK9mslfVjUQ0SM3yFUqqFw+7m8sYZI9AmnXw6BB3VlTAD79CmEXxs1X7F xDLZHLIKFGlbyQ2p2yOOoSM+dHlTdf5xuR3DYTh21EZtMObkHyJA8CPFy9AYvuOQsQb/ 62f46XKCutuLwoHBreSFVRBhOINU83Gxu/CG9W4y5u1WlB80sON9Itql2eIc1fN8E5GR APTtV9pfgQVqTEp1ZOSqe8bF8U9hGWsQbPWA9aUFy34vWyOSKT5K2QP7FEWvNYoUUhVe V3+Q== 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:in-reply-to :references; bh=z8sxuT/SURWt0NbMlXvT+ckxpwyNg6i12smirIkDOgs=; b=hTCuoMR4SD88JZoWlnJZBHR3iOc3GlNLyBFECUwEfvcqDrD6kw0By6SA/V0gEwCGXr EaBHDwzsLYz0sNVL8VPS5Nj6M1tfi8nur293UR8XOaCdLpemHNOZ6zaNj0IMOG+EMjYh IK7T7cVHrsxV50ic2dc3TTXPg0Pj8JdbH4faDJ7Pm7JfDGyhhIsQuXS2j9ptJrL0cJCu +Ha34Uz+8CSNnwEDtBMD7JTANeRU1AGGbDx0H3lElo+1Z8JD7fwBYKckpXXMIr3lrnBx zivBA5RxZh58mImd1S1302YGuIU2QTbQe7ZiTrKRI29Eqn8Q0taKPT1qJ3dg8cXdP4Dx hNQw== X-Gm-Message-State: ALQs6tCjWQ6u67Rx5v4ilxcETx/BsOgZT/7jYXIChEe6uS++M+DFUYhe jwYduFMOuY+NyhBlDwLp254= X-Received: by 2002:a50:b6ba:: with SMTP id d55-v6mr145127ede.250.1524777227855; Thu, 26 Apr 2018 14:13:47 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:c47a:3b0c:1c8:90dc]) by smtp.gmail.com with ESMTPSA id w9-v6sm34680edb.38.2018.04.26.14.13.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 14:13:47 -0700 (PDT) From: Luc Van Oostenryck To: Marc Kleine-Budde Cc: Luc Van Oostenryck , Wolfgang Grandegger , Maxime Ripard , Chen-Yu Tsai , Michal Simek , linux-can@vger.kernel.org (open list:CAN NETWORK DRIVERS), netdev@vger.kernel.org (open list:NETWORKING DRIVERS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support) Subject: [PATCH 3/3] can: xilinx: fix xcan_start_xmit()'s return type Date: Thu, 26 Apr 2018 23:13:38 +0200 Message-Id: <20180426211339.30821-4-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180426211339.30821-1-luc.vanoostenryck@gmail.com> References: <20180426211339.30821-1-luc.vanoostenryck@gmail.com> 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/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 89aec07c2..a19648606 100644 --- a/drivers/net/can/xilinx_can.c +++ b/drivers/net/can/xilinx_can.c @@ -386,7 +386,7 @@ static int xcan_do_set_mode(struct net_device *ndev, enum can_mode mode) * * Return: 0 on success and failure value on error */ -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); struct net_device_stats *stats = &ndev->stats; -- 2.17.0