Received: by 10.192.165.148 with SMTP id m20csp4683880imm; Tue, 24 Apr 2018 06:53:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx48vEnxDLwThNNUWsvdWaYPIVtJTFShYphLpc0Rl0J2595ZvOsI90LDbCsA3pw/YeMDijJ/e X-Received: by 10.101.87.201 with SMTP id q9mr20849355pgr.215.1524577983708; Tue, 24 Apr 2018 06:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524577983; cv=none; d=google.com; s=arc-20160816; b=ksKJYfHKPUz6Rsi2xxxyaDRYwZlNWNcRQVtkYzs7wAwKCUSTanqyoZQ3SroowLpUTN DRx7M1+EQZjeLajqEpLSwrp0D6MuwCkVmySPhkDjzVR2tuTxLxXn/FNoUiULBILd5PMz KvH6/oL8FxwuLzhwgivDm+YCDAdewrbHVMnVWefEDgySdEyyWVWQ4MGIsa0QiuMtmKGp SCbrWmz8cuhZNp5YE3sMH7fGCl3FCFF0c8J1io1jtTwJpcbfPNiIn2JEQw372F5KIRaN aWTltnKE4qGKddj7NZzkvf2fpQ/UjoNg/J8M4JOx5hQGs2pSfZ1kFJdRqxg4G6Wkjz7W rMmw== 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=eWwCBQ82pXf/9RG5NjSPQhdJldJgenlVNQeiKq1jlfc=; b=UvXjgzkOF8fDsJSqLDFyrZOzYRnZEcaJznUb3j/YpSMnfGWmyy6Y680EeNlK3tMzpz qP+/72axru/LjBdxOBCm+nZxGzaE/fbQeeRP6IehFaIpvgUFSZn3qihUstybNY7KDx3r IFvPvka3g9ResEdfkJ3cQedTfz3Kx5S8nAKwwDKMVkTGWnsrx9t663mrDTDpV9D1dHF1 N8mWhrnyPucotsKMQrGcJ2fRwLTZylBT5SnQ7RGpxFmxLIV4k6SFj0T0Wj/4UvCzGLY5 aHqoK7KmKSCuuiCUrv4dA7Tt8fM+WkJ3JQHdl8CHB18kgKnQ+ynyvl7STmFcUkV/v0eD xfRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rE8IsT1V; 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 f1-v6si13774411pld.168.2018.04.24.06.52.49; Tue, 24 Apr 2018 06:53:03 -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=rE8IsT1V; 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 S933737AbeDXNvB (ORCPT + 99 others); Tue, 24 Apr 2018 09:51:01 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54278 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933623AbeDXNQM (ORCPT ); Tue, 24 Apr 2018 09:16:12 -0400 Received: by mail-wm0-f65.google.com with SMTP id f6so893907wmc.4; Tue, 24 Apr 2018 06:16:11 -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=eWwCBQ82pXf/9RG5NjSPQhdJldJgenlVNQeiKq1jlfc=; b=rE8IsT1VC2EJyJBIwNdqwrjRh+6sH3CIqhK4Hae+0/MmKqL4gA/RQf+PSZwZFH0yhV gnrJAojqiF70LcMzQp4Ps6is+FPMaC4fEKh+63rL8ioYtOrjyZQYFK1iaxOAiLQHpT5Y Z45LDO5Q33zrN3PJs6yZB6pzLS91jJbY/MfF8ZFO95uBc+dntrY4XyT41EvaCqZ2bq0b sywROZnDYBYoTrgI6POlg1X1af5JR6sWmJldHyrlQklC3MZbKtYUsdbWJy6D/Wla8BRZ 0GBQGq8l7uqzAwu0XFSXKq2PqNkHcqKbNnBSUHfy38unxFJRA6fCEIKHcdZa/LryobJM L9yw== 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=eWwCBQ82pXf/9RG5NjSPQhdJldJgenlVNQeiKq1jlfc=; b=XECife/LQNqUolWsG5cgHyBoyKi18XbMc9djvgHuOHHOT5gYzrFaLKPGVWPusahQ5q 7bI7g7/FtAd1ItC4dMWirzwS84Kjw+sqPaiQzYnEG1qb6p6sjMAohzDifeYKxoarKd/Q P5bkpaJORXGvVKYCqpQBjbAclef3x7Kgzo60RZN5nx8QIEXSmgTmZA53ePxBtw1yb5YS yoW2/ShPvQqUoyJJuDM+Qj9JhJWNdBJyanInkdRrQPBwOkp9se69LCjEOEkwYiN7MRj/ g+lgtWQp0/O5BRKfTH4Jk5cIHOA3NkPK/6wLFwML7p1FFpNzMINW+d5Xvx9Onj8AbI26 ABNg== X-Gm-Message-State: ALQs6tCyXCs0HzAd1Ey5tL/917nSuou8UlBmtACzcnAcWOVBb/EUAfWA tdGwwkcnHJFp40VQsG2vBK3WOgvQe30= X-Received: by 10.80.170.135 with SMTP id q7mr33209039edc.124.1524575770592; Tue, 24 Apr 2018 06:16:10 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id n8sm9254408edb.5.2018.04.24.06.16.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:16:10 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Wolfgang Grandegger , Marc Kleine-Budde , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] can: janz-ican3: fix ican3_xmit()'s return type Date: Tue, 24 Apr 2018 15:16:09 +0200 Message-Id: <20180424131609.3258-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/can/janz-ican3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/janz-ican3.c b/drivers/net/can/janz-ican3.c index adfdb66a4..02042cb09 100644 --- a/drivers/net/can/janz-ican3.c +++ b/drivers/net/can/janz-ican3.c @@ -1684,7 +1684,7 @@ static int ican3_stop(struct net_device *ndev) return 0; } -static int ican3_xmit(struct sk_buff *skb, struct net_device *ndev) +static netdev_tx_t ican3_xmit(struct sk_buff *skb, struct net_device *ndev) { struct ican3_dev *mod = netdev_priv(ndev); struct can_frame *cf = (struct can_frame *)skb->data; -- 2.17.0