Received: by 10.192.165.148 with SMTP id m20csp2619108imm; Thu, 26 Apr 2018 14:17:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoE4c+3Grgn+Qs//LrXYpM+cp+WAiS76JqT/BJlovt6v+EUcYl3e8ZsS2Yuwdw58h6WSQpO X-Received: by 2002:a17:902:a586:: with SMTP id az6-v6mr8538536plb.210.1524777455373; Thu, 26 Apr 2018 14:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524777455; cv=none; d=google.com; s=arc-20160816; b=qI58cJFEECQNJ5pvCVPOEYfT3qCu3vVGxgOsNCW+xD5/n7mirW8U8Iu+Ri4KCJgBzl ZXp/7E8e7ybWldotlAsH9wHWeLnB2mxTsUcuXFwGD3DHlTYBCusygLVllcs06d5N363D rk/tRy1bRyvZKXEhOz4vunSBbGRNQ6LM+s+X3yzwsFRAVB59bIjsq2pHFiBkDi9l5qAC Ss+30KTvVhU4cprOwKTPCMjenbi2SD/i6oeoaU/odLQVsELYu0AkEwLIMbXivA8klTR3 4jSVzzH7eN/z8hNu1eUmhtZVy8d3lH43urdYpHGe9jmfftqdZmrPJEWYn7LT5DENQLz3 V7lg== 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=FfWOBDK8PxtUrHVonTAPaMkvEINgPUkomkuTzFzR1Iw=; b=FIG+WKCvcxhVEVnPNGQuSJ16vTynU9/pNO4Wm1I8pFao0Nx0+XCZgDTjcA/BW9JfPX Wovgph+cEN9cNzUGGlf56Y7TmmYOIx3/eTPgVbvz1NVlEQSLtFKuIosFxp6vMRzgskC7 74Is9zwIL4uVeLK9Rz3HPIqV8o62lxq8tCYK4muGXTyLJGi+SE0OFSSBo17PtgKgkH3X o7LG9A5USfEitmm06WSw2uR7KTNcuwu3mX5BbmcrAOS0+e8dnmkOThjoFcgdqMVanXQ0 vJYp6guApG7OsBN6r/quBgAo6zU1G/uiEtdXnmYEMKxWweH/toGta5ucI5ZbbkyzR//0 04ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FK+SeWeD; 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 h23si18695090pfn.287.2018.04.26.14.17.21; Thu, 26 Apr 2018 14:17:35 -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=FK+SeWeD; 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 S1756907AbeDZVOk (ORCPT + 99 others); Thu, 26 Apr 2018 17:14:40 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36144 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755546AbeDZVNr (ORCPT ); Thu, 26 Apr 2018 17:13:47 -0400 Received: by mail-wm0-f66.google.com with SMTP id n10so196619wmc.1; Thu, 26 Apr 2018 14:13:46 -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=FfWOBDK8PxtUrHVonTAPaMkvEINgPUkomkuTzFzR1Iw=; b=FK+SeWeDloz3hb+FNWP9BGrISvg1KGVrgLhWRELx2KD3EczU/y87Vg78U8hcGntnQG izSwxMscIvjj3mP7S9Q49jmQOdV179bx66rdF96BIDnqq4nlUD1pmFOy1DZoPVfGB4cD fHGbjTPwfeguLnRH3rdnQbGwbJPFVMFVDzUB3LfwyF0P7VxMBkhT6/OLS/UXUf/JUaRj c1CzV7F6obygrZv4IwT4qm1XewtenhpiguGBZV6n3uDJYS+kQb22qQjPH5LQdomD04QG ClqW5rjuV1EOJ/MpBtOwhz4jiqCFzfnwsp89TPrayz2tdc57pkVf2AcHWXHFXWn0p8Hv rs8g== 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=FfWOBDK8PxtUrHVonTAPaMkvEINgPUkomkuTzFzR1Iw=; b=k7btoluLEuMe8li/MaF/L0xHFG9PvQs1JmLFb8gVGUjgS0nDWnB6rGYHHw+eo6FiQJ KTjBYYwVaFPaChbW8ldc/t87FE11/NqUZa4ZGIQ9dgZWOss9rnizxoQ7TwUUd7PeHPgf +qvEcsDjS6+MV11iW3BOqYddrbqULK4EjqfFJDGDcirc2xNDkekcJ1lcntjqvuYzoB8I yhZbZgVMbLAgxRT4xuPR2TyPacWOASj/Wug8756ra4oYoTyCqdaP2Cbbrw8rBaNlc5fb CQGFB7q+W2iIjeQISSnAEbEn6iQKnHI/fNHU+2mdNC5oWVtt7jM47djeBL2RqtXNscpX wqxQ== X-Gm-Message-State: ALQs6tByT6HADyiSDcQ+d+43B5oCONq4EldCtFwsqys7W7s3Y755kgcx 0ymJgivVJADJLJ9uIjQN+1c= X-Received: by 2002:a50:ba10:: with SMTP id g16-v6mr127136edc.85.1524777226336; Thu, 26 Apr 2018 14:13:46 -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.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 14:13:45 -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 2/3] can: sun4i: fix sun4ican_start_xmit()'s return type Date: Thu, 26 Apr 2018 23:13:37 +0200 Message-Id: <20180426211339.30821-3-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/sun4i_can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/sun4i_can.c b/drivers/net/can/sun4i_can.c index 1ac2090a1..093fc9a52 100644 --- a/drivers/net/can/sun4i_can.c +++ b/drivers/net/can/sun4i_can.c @@ -409,7 +409,7 @@ static int sun4ican_set_mode(struct net_device *dev, enum can_mode mode) * xx xx xx xx ff ll 00 11 22 33 44 55 66 77 * [ can_id ] [flags] [len] [can data (up to 8 bytes] */ -static int sun4ican_start_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t sun4ican_start_xmit(struct sk_buff *skb, struct net_device *dev) { struct sun4ican_priv *priv = netdev_priv(dev); struct can_frame *cf = (struct can_frame *)skb->data; -- 2.17.0