Received: by 10.192.165.148 with SMTP id m20csp4681982imm; Tue, 24 Apr 2018 06:51:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoXkSR03wo9+k3Bim1mtc+pSlFMJO7bjZ0/fUlD2O20emZayfuH1v4Z5TJaFjo840oWR5in X-Received: by 10.99.171.5 with SMTP id p5mr1690026pgf.387.1524577874513; Tue, 24 Apr 2018 06:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524577874; cv=none; d=google.com; s=arc-20160816; b=a30oyOVCXickvEAWk/2AgY/3c9cBDOYvWDncENgW10CaAv4zUt78ZC0gvfXXm1KuW1 Fe0xkehGsUzQwfmU9bA/ipSHTXgem3FKzUuugMylW5iS6Bl+39EAABPoe/h8wqQ5cBxU lHW/p+RHheLBsSJ92y/NjBp8r6ogEPtcS/uWlfB5OnqFCYpq5UTS9V9vE+ET/fRxTXqM k/JXYFpS5CBlaLBV87Wy+bV7gGqDQqGygFbMovwffoJlym+C0836YtOjcUpilj0D9prR AsCEYmWs5zC4BgW5ct8Zx5ybq4mTVyu2eyqJh5STBhKIIQs+IFeVyZz91YcASbDU5mmn MSNg== 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=8sWsN+mh33nv3HXW0rrDyokfnQ2dEDflIsMvQQtXKtw=; b=h1jC0OeVwM1zUvcjln/kIa1E8aWLfX3eHBXFlPksB6eF4nDONhRcXlNQ6ub8HLUlke P0yb/AfnuOGhVAYV9ZDrYAzZ2IKY+pVHf/xbl3IXJnAahPPdKAP+Er+rsgw14Qw+7sZe NhRy/jbHA98Q/9diXANnVF2Vy0hjJOEZSwKUhSzWEGHDevtB8TO8UbiNTfDhTRd6wOzi MN95TAIc8Fy7yIVlEwfBG0q27iaoiqFmzcAGI1/twxXw9z4EnjDUTf66sUkB7DiHgDMq 5mE2kCp0qn/LHyVY/7XQ9rOAw+t+hdWkB71kkKTdTomn56kRoTmFG6wb6qmZa958Oofn VXkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BkfJdKXB; 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 t4si11839937pgr.457.2018.04.24.06.50.59; Tue, 24 Apr 2018 06:51:14 -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=BkfJdKXB; 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 S933687AbeDXNtG (ORCPT + 99 others); Tue, 24 Apr 2018 09:49:06 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:50923 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933668AbeDXNQV (ORCPT ); Tue, 24 Apr 2018 09:16:21 -0400 Received: by mail-wm0-f67.google.com with SMTP id t67so902102wmt.0; Tue, 24 Apr 2018 06:16:21 -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=8sWsN+mh33nv3HXW0rrDyokfnQ2dEDflIsMvQQtXKtw=; b=BkfJdKXBuAr+KrLTvHz1Vqea9OPuyOqeT1/GmzR8kCrloVXYT4A15xoqIhxOgObqU/ pmjFu9Mxo+Ivgsssvc4cu2HXF3UYsw9777/V7wya0X0kI7SKKx5lE7x866fcIVT5tavD 15PQHcV+42qyIYqr6SNXQvyIUHKqQF4m1MzAoetNj03ZlWsfH3vaeaErb2k0A7eN5XMR 1H4oytbOR+x6hq2qDwyGJ1v/Qbn0zTgmMnDf+ZxCJSzsvmhOnq73hbFRegcLYLPxXwQQ w7dM2O/Wq128V5KDyu9a3YsnQeV86Mk2ZH6usW2zaSzDMj6WFi7M9b+kpL9r+Dd+0IDN r2WQ== 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=8sWsN+mh33nv3HXW0rrDyokfnQ2dEDflIsMvQQtXKtw=; b=JVaNMElSQXtdZSF/cmhAf3I9/4BebIfesLY/QpMVodnjombJcF+5Du7bjX/XIP1Okt MWRyi04+9i4PFHh4ae8U3wZSNkG4nhqYxt/DijDiCrmFavMBYtClb3g/TX2NybwTfFiq /E+ALqOtnW6dk85F7My8ozQTKzJwyYFdJwYw7EuzK9Ia7AND/JWp61Ms5YBIvmvNsFXc 5RRT2QflsprrjiLsRrEUrrlBvhLaG6jZ6vBgFItoPTJPcrE3/IVITEXTV6ZMFzvG65y+ Zyzn2DgzTvjwl8+krIcb/bTVc1toY97aAuc+u31iZbOJUOeoQLcbr7rQ0sty799wf8FJ rzUA== X-Gm-Message-State: ALQs6tCTiPZynDy7vD5C3U+g/SVoh2sDG9tJAcNYX27dluReS1q/RcQy xoLH/uoRvk1qsqaCalCgUh+Xp+yzQdg= X-Received: by 10.80.230.12 with SMTP id y12mr33235305edm.278.1524575780116; Tue, 24 Apr 2018 06:16:20 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id q11sm9568786edj.2.2018.04.24.06.16.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:16:19 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Tom Lendacky , netdev@vger.kernel.org Subject: [PATCH] amd-xgbe: fix xgbe_xmit()'s return type Date: Tue, 24 Apr 2018 15:16:18 +0200 Message-Id: <20180424131618.3455-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/amd/xgbe/xgbe-drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c index 7c204f05b..9dc263dda 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c @@ -1962,7 +1962,7 @@ static int xgbe_close(struct net_device *netdev) return 0; } -static int xgbe_xmit(struct sk_buff *skb, struct net_device *netdev) +static netdev_tx_t xgbe_xmit(struct sk_buff *skb, struct net_device *netdev) { struct xgbe_prv_data *pdata = netdev_priv(netdev); struct xgbe_hw_if *hw_if = &pdata->hw_if; -- 2.17.0