Received: by 10.192.165.148 with SMTP id m20csp4685341imm; Tue, 24 Apr 2018 06:54:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx48pS9+10K7b/Z5AJD9VsUtU3UjQrwW0LVlJTrWHQAvD1MUYLZe9Ld0n/NWeK3T1/XZGh40p X-Received: by 10.99.100.69 with SMTP id y66mr20349955pgb.206.1524578067844; Tue, 24 Apr 2018 06:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524578067; cv=none; d=google.com; s=arc-20160816; b=a7Vzg1+eXWwf08EJn7sG9a3qigpnGcn9YKtpyzg9gYQ7hXzFsBzJXEZn5Ng6c5bi+d Svo2nSmw+aT1S+yEwinx9hD7IAEJHgK7WqnP6SCsTtD1BwctbdSpNPnykaRV3eLN/8FT 71gBhg55lH7SeB9H05LuKkjrg1UUf1GKwb+aBA9U3+dYGoUEEKL470SvM5o0Y1VOEUIE Sk+3EnKSDB04HTx2bIZ8ROmWIlbcith65MktHdh3+Ld9cQpoKSVhc4qVEWm5fqwdT3EN gdBiaxI9fv+POLVi/Sq1GYE3UarUyM4Mxr1+EgBpc2ZtEIyyXYGBVzQ0ITEIGSonwQYg +59A== 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=Ajjd/gxl4qu3+fZ6bcY1MyVqINaPOJnFOZ5Yb4747uw=; b=BM5e1WcypRhAYLllqB4E7b7O9qZuuhGyL5BTXrYOU+HmpeHxeaSX36MIWM27DykRIY 1hfZ2OqnbTb5btFOrupr+qzKe2o3VsalbJPJu7/UaKJ4rOEGCts4GIBYCDxozeSa9952 QFFw5CcmdtV3OaxO8OLxAQidoGj/4YBAeUy0kPYu8hhKAvc+THN2o+Tv12T0Lt7JsGuW EuLABgMTPwh0oIj0Gje5eTcpy38ZejoHu+76kKSa6dA4Ex4sSd8jbqPW1w8Cdstl/g4m hFtR+5xz1qbr9YIzdeNL1YP7my8iBCmBA58ZN9hrJr25bIomfOKwRbANETCTkflli9RY s1+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AkWXDRB5; 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 x10si12701416pfm.18.2018.04.24.06.54.13; Tue, 24 Apr 2018 06:54:27 -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=AkWXDRB5; 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 S933591AbeDXNQB (ORCPT + 99 others); Tue, 24 Apr 2018 09:16:01 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:50720 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933548AbeDXNPs (ORCPT ); Tue, 24 Apr 2018 09:15:48 -0400 Received: by mail-wm0-f68.google.com with SMTP id t67so897820wmt.0; Tue, 24 Apr 2018 06:15:47 -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=Ajjd/gxl4qu3+fZ6bcY1MyVqINaPOJnFOZ5Yb4747uw=; b=AkWXDRB5Oil8OuX6GHNsXdCe6byJFl2TaLxnkLzfgZIVB/NtOenFqCiBwCm7kMRkia pS1TtqW5CWp6vjvYg5Bk2oOglGUFsEvjj+dIC6DXdorwPDlQ/Yhf/04tgQCahlqImXXi CNK3eiRbe4uKemnZOs0L2FQxpF8OWRihyvy3ranBL7Gv1Q2DHan4L0X/rRHaWvwlljoC Vlk7K++Ox0sHfOH/XkwdnFwULQFhY6TGLAWA8139DJamraitlkAuqPB4qyL50RvBrqR1 EjxJdHHQDsujGZy10SQFZHqwNYCZBa1I4+o4lttbwfJbTJPYYah8K38gIkCP3viVnTzZ 6now== 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=Ajjd/gxl4qu3+fZ6bcY1MyVqINaPOJnFOZ5Yb4747uw=; b=rvgtoEAyP0BEBPPB20luq59qMHHJEpUXTKME4tpoUNnpU1eQyj1iDpu6rHtkhUQ6ve NmaXePtwRqWVoyqKjEYIx04eJaq+zbcNhqdQSWvjExGW1fAfNsspkxQ06kwkyLuEdrTN 2Y4WhCkHSAWMexDCV0JRCJsY0hlQ9jS2CI8uBiz91J8oCfhSOPaXbkDXWGMl0M3qLEv1 aTVIqYbarYaRei3voh6+ZKB8EqlOsJT2sjivpT9J7J6qhxxMtJiajvU2Qi+lPB81fDNS pVNW0/ZcERATNjQPm0z5Jus3r8uetqDLEAaUeQeSZyaeHAWwIX6sMwUi+6niV1cBjqyG N4aA== X-Gm-Message-State: ALQs6tDeif/d8yACswjIbNjReePEHDW+zRrwCMl/b9qQg3e68ibjWl7+ ZQjnJ/eNo0LY6rVdMek/PLS9WQEKaLE= X-Received: by 10.80.184.194 with SMTP id l60mr33064666ede.5.1524575746872; Tue, 24 Apr 2018 06:15:46 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id k24sm8620071ede.62.2018.04.24.06.15.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:46 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Faisal Latif , Doug Ledford , Jason Gunthorpe , linux-rdma@vger.kernel.org Subject: [PATCH] IB/nes: fix nes_netdev_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:15:45 +0200 Message-Id: <20180424131545.2810-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/hw/nes/nes_nic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c index 0a75164ce..007d5e8a0 100644 --- a/drivers/infiniband/hw/nes/nes_nic.c +++ b/drivers/infiniband/hw/nes/nes_nic.c @@ -461,7 +461,7 @@ static bool nes_nic_send(struct sk_buff *skb, struct net_device *netdev) /** * nes_netdev_start_xmit */ -static int nes_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev) +static netdev_tx_t nes_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev) { struct nes_vnic *nesvnic = netdev_priv(netdev); struct nes_device *nesdev = nesvnic->nesdev; -- 2.17.0