Received: by 10.192.165.148 with SMTP id m20csp4736382imm; Tue, 24 Apr 2018 07:38:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Dp9C7y4zleWtT9VraoWwoiBXrBqB9nxHrZa3NUJlmqf2id+oETc/6pwRPkDf5j6NDs0gI X-Received: by 2002:a17:902:aa94:: with SMTP id d20-v6mr25991061plr.323.1524580697943; Tue, 24 Apr 2018 07:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580697; cv=none; d=google.com; s=arc-20160816; b=LBGV+yTKbx1EOwuVktRnfj3HIIqm1gdskLK4TaMz8hbOiCAx8kH1OTJ2HA0HkRp9fF RH71sAnYPocMJPZbQh8pKdSPSPoVUyy2Xk1i0WbKwCeU/2EV4+3Edlb6Ggg6kJjHCKwn k9iyEoL8vINT7dRvCLG9gAqSlvK9eiA1quTs6Ogfo8p1HvnwF2lR1pS90+U8YtxkpuGZ EHppsED6ufcVJ11LO5w6ViInD7qL4upY/VGvcWpasfuBoFX6ZytWSBg+x+ND8JlIm1IQ 0ogpJFSUA5Ifb+C+TE1yze0FKCih3Ms69es3MBsfg2kiypNIFpSS30zJJT5syVNJaCFI FEdg== 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=0Lr0309L85ZsbvAogBu3HFpCTea+nostVkBPb4TLHH0=; b=ImjLMmgrCR8JjtrS0mHAqw5vlWoSp130oiFH7VVM7ryJR5UWrsCNrihl4tDOiATPRs Jl1snrCkFsL7lVZNJr6xY4rsQQHBbeLrNR42C/SNxS5q7foes3M0Ijam7RLrsc1S25Ew xZS2roWumhQPTNlWQy1aFlhrxie6knQ2FsIuxig6TQClwndyi6Z/vPo9ww+2gNNalxV1 cbPVYCjzIjhOvGBitOqy7qZ1rPxHNVfXreoCDLyP5+5nuqj4c1MDHBYYJJySr+jGV2nL vAFXxSdCTNa0E1Xw1ZfKzIzOTt0wAk9QYTMl/W63SbNER8OVmn92wR/5EiWr7nZLBzQD dIVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YsY7Kkj6; 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 e1si11645321pgu.537.2018.04.24.07.38.02; Tue, 24 Apr 2018 07:38:17 -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=YsY7Kkj6; 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 S933603AbeDXNRf (ORCPT + 99 others); Tue, 24 Apr 2018 09:17:35 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39987 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933700AbeDXNRY (ORCPT ); Tue, 24 Apr 2018 09:17:24 -0400 Received: by mail-wm0-f65.google.com with SMTP id j5so806453wme.5; Tue, 24 Apr 2018 06:17:23 -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=0Lr0309L85ZsbvAogBu3HFpCTea+nostVkBPb4TLHH0=; b=YsY7Kkj6tlrUJ+/JFWmzGFp/yCl3arpAotf+M34SYFIc6Rf8QKI27vAB7RbKZ+uNq2 19gjhGQVHrMmldiKR+qVZ2iyw+M0j50bv+C9yG0irbc7R5ES9LFtKZQylPmOaAkGQ7XE Uj/YnwAiFRP66GZmxWpSEC+Pv1ks0ETAHSPmfnpj7Keu2wqjGMd8XXWMbGVsWYbKSouf 4dg3p1GkhXSiv8GE6sFSiab/NktQW/YCdb0kBu/68N7JlpDQqf2QTOv6QY69c3uV940e qoYbxRHX5JSnZv6NwZLV4SaNHYccyvowRPBrcLON7EnRRV909VcizVzovmit9Z3k6g+0 05cg== 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=0Lr0309L85ZsbvAogBu3HFpCTea+nostVkBPb4TLHH0=; b=ZvnI4Q2bDxdjPie5qsbB6lpGu5Vuv3cIsxuC8TopEGmPrxkgkKBt3k6qHjeqHyc7Zo F6nTJf4QHcEYwpAbNZMddIKk50y5m+ex9Fiaqh7PrDxUtuFi+ycZMu1/Pzs8PqObTwrM /vnWaTE/A003ibI04JZnRycMMjIF5t0h1hgOozgdyLTjBkuudcv3iSq+I/KH2PF2+bqy J+VT2NtLH9DYCOLXvtD6E0lfKM2v82FE2dmPYdMK5TJPnZOyEsCJsjz67sN42JlHR6d6 YBvZfoPkqPH1prusQS7bFkfeBGBoazLYWs1BDjCN8OKUsjJVgpbWWsOxeGuinJZgVbaG qiYA== X-Gm-Message-State: ALQs6tAvXCe10gCNpWl0w7kJn+fcEjpesNBGVHPk56aIsULIr6KhcuTW S0UJzgqW2zkpJXB5Ku+l5TZ6pOdx3Tg= X-Received: by 10.80.252.12 with SMTP id i12mr16472871edr.74.1524575842241; Tue, 24 Apr 2018 06:17:22 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id t11sm8910947edh.46.2018.04.24.06.17.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:17:21 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Sergei Shtylyov , "David S. Miller" , Geert Uytterhoeven , Thomas Petazzoni , Laurent Pinchart , Simon Horman , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH] net: sh-eth: fix sh_eth_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:17:18 +0200 Message-Id: <20180424131720.4357-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/ethernet/renesas/sh_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index b6b90a631..0875a169f 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -2454,7 +2454,7 @@ static void sh_eth_tx_timeout(struct net_device *ndev) } /* Packet transmit function */ -static int sh_eth_start_xmit(struct sk_buff *skb, struct net_device *ndev) +static netdev_tx_t sh_eth_start_xmit(struct sk_buff *skb, struct net_device *ndev) { struct sh_eth_private *mdp = netdev_priv(ndev); struct sh_eth_txdesc *txdesc; -- 2.17.0