Received: by 10.192.165.148 with SMTP id m20csp4737178imm; Tue, 24 Apr 2018 07:39:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+jTu22oq//9PeUcCsNWGlkBdV5XCG0L6vVk7X1QtkouPqmYzSY7tleEvICq5Oc/odysK/9 X-Received: by 2002:a17:902:887:: with SMTP id 7-v6mr25789678pll.319.1524580740113; Tue, 24 Apr 2018 07:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580740; cv=none; d=google.com; s=arc-20160816; b=p71MiZS9ycpS0POkoLFP0vsXfQrr7lzxQka7GF1JdSiSrxBCTcZlODKhKUCecO8S4L qh9GMhijcHb9iXbbQIDsrbCxNhq8HeLz5T3AQ+OB17InYH9DuJoEwK8Zk8iw/7ceYWst vf4Kq6UdVom67cIRU/S6zPY5lfsJxJMndL5BS0qFmP46BcgT38yzKcTpSVGmfbid1128 i4BZIR9vnvRoQXHAGrs288ySC5ps8sIfMeLqGMJ1nOaKFEKLtK2CK+axS9fciPNeaWpw wZBmDkcyF9kRhzx68XxihKambMSaky07y9TXLPH8n9jrpvuM/qcxGw3fDywqWVJjxV/0 4ukg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=W/KmzAeu29CVoilp02FSzdyovY6pUreyUJ+2ZsxZfyU=; b=0hpQiWJNW1uyfhyvSaKORw5wdHscLjCAu3c8b9cG4Kt6jdHhoby3cN60/7nnz/VnJe RfzHdFfhXF7S4Ew7Zhq+UovProgyov+S1qmaukqx8oM/XZo5Dy3PNepjaPyTWv8d/PS8 0GPjjlf/b/5MnVX4cN6uIIGUNzSacZqp8aulsaGMBY47dPLp6wjxdYkUkYePl/qNU1ww AJlfsdHNcnZgx6Qn3PaN94SiC/NXeY9X2VQKy8KiJf+g/FpY7sqITHilgb891nnHwPQa 7K/+nc7wHO4jlzK+GOKFxlVfJl74YJRtGIB0jhbA1yEXcIfHu5wcYI3WQY1IRm+If/cd Zt1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=biidDyPP; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x19si9799373pgx.378.2018.04.24.07.38.45; Tue, 24 Apr 2018 07:39:00 -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=@oracle.com header.s=corp-2017-10-26 header.b=biidDyPP; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934407AbeDXNdB (ORCPT + 99 others); Tue, 24 Apr 2018 09:33:01 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:50356 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933338AbeDXNc6 (ORCPT ); Tue, 24 Apr 2018 09:32:58 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3ODVDl1004325; Tue, 24 Apr 2018 13:32:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=W/KmzAeu29CVoilp02FSzdyovY6pUreyUJ+2ZsxZfyU=; b=biidDyPPhIFYzCt9tIKolOW5BnBbKNxbBcbqj5uT6PnWwZiitLwoJ7Gj/BKvKI3gHUCZ mt1G6DU4d8AYSseBdHClvB47qehNXMsegd6sUUOOdIudzVRNRE9U+sfJOASZMenner0P Rcwn79ABoRV1q3i839sOAlXe+tqoLYzMtCqbp/L+A7pebMRRp5RuMq0fxwxnr7oGijOf QZNDXYwF6WBGsdP75riCuLYBuhGzDUAn0tMr4Y+6cDi/ZpkEEGfD9JDArfD2NIrITLCd YyqZdZfeGmHdvY6ynHR+Wms+w4+TwjtwHMmBWUq4gkdJjnN66iZw/IVZqr6E09hOab1Z Nw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2hfwy9j1tt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Apr 2018 13:32:33 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3ODWX2r004780 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Apr 2018 13:32:33 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3ODWWBo005107; Tue, 24 Apr 2018 13:32:32 GMT Received: from yuvallap (/10.175.44.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 24 Apr 2018 06:32:31 -0700 Date: Tue, 24 Apr 2018 16:32:25 +0300 From: Yuval Shaia To: Luc Van Oostenryck Cc: linux-kernel@vger.kernel.org, Doug Ledford , Jason Gunthorpe , Leon Romanovsky , Alex Vesker , Erez Shitrit , Dasaratharaman Chandramouli , Feras Daoud , linux-rdma@vger.kernel.org Subject: Re: [PATCH] IB/ipoib: fix ipoib_start_xmit()'s return type Message-ID: <20180424133224.GA6766@yuvallap> References: <20180424131549.2859-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424131549.2859-1-luc.vanoostenryck@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8872 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=835 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804240131 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 03:15:47PM +0200, Luc Van Oostenryck wrote: > 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 Reviewed-by: Yuval Shaia > --- > 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 >