Received: by 10.192.165.148 with SMTP id m20csp4684920imm; Tue, 24 Apr 2018 06:54:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+E+uR/TRO05aqYL4NHWNh64eZTcM0z6pahdqMlBWwUXx1jVzrjlobpAchzoKg7cU5cOp2k X-Received: by 10.101.82.11 with SMTP id o11mr4650683pgp.152.1524578043140; Tue, 24 Apr 2018 06:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578043; cv=none; d=google.com; s=arc-20160816; b=ZYEec+i6nzVZ2ddq3DsB1e0XAJmuMHAlmq8xLbDUtT2ODLgl6ae55vA67qfya0UZYj HlRMqo17cEBgjfHgRQtRh4KBJWOOwflnW4MsiT6EMzUiTr1HRr9sqbA8cGgBrVfaMVs2 nuA6nSg5nba4b34AVvB3eIjuUo3Afit0fKzwo4Q/2jb5uf9NIezNKeFbbUKYEuFNgSgO 3lyGsMh6DZqvXP0WPhkfmFrgpznXjBJj6RWUDkkpc0hJc6W5CQTN4pF8J0sA9vxgiHil utV6OaRz/AY9jL2TxJtBtEF53lO2jGu4qzq5/6Vmt4yjsdKzxk692qdYtoHRenb73toJ HEGA== 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=3yRUIVu4VHZV11qAsoBxolgKfr+WGNnDSQZFNp6uKjA=; b=LikHOp8XY1duJwmS2uyHVFiz7mTua6aKofFRx+BIg4Z1iwHyIGZcKEDuksYCR25Zqq 68DWJZ2HliWVHy77ztvYcttq71Xsbt5m5fQomQCl5pWk9RZThcacKwy5exohOsUwoYEQ R2fkysk4v2R4CGexODEG2d0MgrrGbQbY3j5Fh4crvrpQW4mzA9OdkPZI99Piu1KgVry6 05Z+U1Wb1jjlAjZqa9ED88T1Oxq4lGugeHmxg5dkK/F9HAPeliUDgqm9LXDt6kddq6N1 60861fcBUVjaJsmT8opo0/KQqPVbKVyvb4L2mp0BONJUu1y+Yj7L74AGfA8DsCs3QvPd uc0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ecXpgaCr; 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 s10-v6si15179045plj.265.2018.04.24.06.53.49; Tue, 24 Apr 2018 06:54: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=ecXpgaCr; 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 S933609AbeDXNQG (ORCPT + 99 others); Tue, 24 Apr 2018 09:16:06 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:39315 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933551AbeDXNPw (ORCPT ); Tue, 24 Apr 2018 09:15:52 -0400 Received: by mail-wm0-f66.google.com with SMTP id b21so798354wme.4; Tue, 24 Apr 2018 06:15:51 -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=3yRUIVu4VHZV11qAsoBxolgKfr+WGNnDSQZFNp6uKjA=; b=ecXpgaCrNurIG4UMn3Swr0Ftbe/kA+JlP8sDur1E/9cJ4vRDkxMq3Jo13f2OpGzans bY+HeqRaIbi3Kafbb+mqt+XZemFFx80RqUcDaaJ/beQxUZqqMIw0FbfjyJyOlaEn7x7I 2TzL9hlAmj+jIut/bd1jc6FTvVGW3rdJ+kkYPQrjBa6sNa9pU1U/unW5LWRaqLG/cgp9 uXr7GJjp+ad+a/OIMKxJ3qQ2LVUrijUrXkbYtHV4Fh49YwPd2w3KWfSInSTDTWUijO+b OdNaI0sl8QjfLk58uwK3Vo+fIGT7nyrC8pbsYa92FN7zLJ4cRq78Z4ibC+2RlPRs8w5c kZ/w== 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=3yRUIVu4VHZV11qAsoBxolgKfr+WGNnDSQZFNp6uKjA=; b=t5NXWUo/+hwPMKERI71j1HkJjBXcEqc8fOv1JlZ/1UowYCu3XWMxVeLMyAQ2e8oEGj M6B4Jtdl0YSIJihKgl0DM/PP4BJ9nCZq/bPt3Cok3rZOtHdtamFwFBi2WYbV2a2IhkET 6NAT30g+BF2PDTwscKkoBU9LgT45jspkT79DnHvjErIVmpqhe+SFtdVWud5qpnaE0ypn nijPtnqay0auYf5jHKwYSosP5cc+fTo8ZDVEVzODMEUXmFudSKU7SgfCrpb9rMLiYE0P 8MTd1NukAN+LedeodBNK+CbDqdCMXmwnQzqzmxy7Drzob5lh8ctCGOCAD/vUqovspR6D QVrw== X-Gm-Message-State: ALQs6tCmPvgmbOnO8y9bFmjIWv4Cz1p84z45p9olwvEqzqYGx85w2Lom aRUHK3NboXdFC+l05uEkmixluDl5tBs= X-Received: by 10.80.183.65 with SMTP id g59mr33456195ede.129.1524575751053; Tue, 24 Apr 2018 06:15:51 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id j30sm8970785edc.38.2018.04.24.06.15.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:50 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Doug Ledford , Jason Gunthorpe , Leon Romanovsky , Alex Vesker , Yuval Shaia , Erez Shitrit , Dasaratharaman Chandramouli , Feras Daoud , linux-rdma@vger.kernel.org Subject: [PATCH] IB/ipoib: fix ipoib_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:15:47 +0200 Message-Id: <20180424131549.2859-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/infiniband/ulp/ipoib/ipoib_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 161ba8c76..cf291f90b 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -1094,7 +1094,7 @@ static void unicast_arp_send(struct sk_buff *skb, struct net_device *dev, spin_unlock_irqrestore(&priv->lock, flags); } -static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev) { struct ipoib_dev_priv *priv = ipoib_priv(dev); struct rdma_netdev *rn = netdev_priv(dev); -- 2.17.0