Received: by 10.192.165.148 with SMTP id m20csp175055imm; Tue, 24 Apr 2018 19:51:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqocVd8O6/D6ozkAtoyvNc4auX5thH4DNIcJnxWxly8JByIC50k+S2qTHW+rYyZTWG8epON X-Received: by 2002:a17:902:b90c:: with SMTP id bf12-v6mr5911806plb.37.1524624664180; Tue, 24 Apr 2018 19:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524624664; cv=none; d=google.com; s=arc-20160816; b=HgTKGEf9hxZ2pEY/pJ0jIqzaeMi3iBxaTKYSKVtsOjMZRRK+0QVsxLToBuyIIrzH5M mm4JGTofhGNfNGqAJabs9TkHzERb4l12TldTayqCuSTmkJRtQ9X5e3EXrSxZwyHd4Owx vy4kQzxmqv9OlHvmu8Z6qVKYoXyQmTFhAj/qDE2XgLWT03BpERAJFmtKRAU+jnnn3pYk fRIjZJHzELaXtptSSHnsqE5DKY7lD7jfCFIxQpSk59l8SB+G6hMtEcD9hsidrckXqP7v evL8sZO4BiI4daIKM1l+cDFM3FFfD8eQmTJIMbM/cBKiRvZ8kwykCmUDwvLhifRiJNfY gkew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:references:in-reply-to:cc:subject:to:from:date :arc-authentication-results; bh=5GVIOgasrziJivvyVniH+wOVmARj6YI780Y1FULlWyA=; b=a22TlFTJ/hXbVg+EWU3zx5QTWMCidFEZ8ZnaAV4sTUUHBzzJn6GaMlhi4yjICb7qiR rgmhfFl6wHG+lXO7Qf5RgGvNl0pbVvbBer0U9y18H6LI+eR3HUyI/wje7bhh7NRFNhZ/ QFpHRJ9oMXwpmqXaVVxEQb435cwVDLV9+ziPjXeKxS5WGqsx7Z/Thq1FFULEqK13c+s1 6thWkv5IH8z8k/ZFOea4lz4PNP76Q2AaexvUMU+8f0dX/WoEtRTJQNq7XXWjdrIztkhF a2kjPyJ9WhZeFC3WklCqhKOQDpzLPWzaG46+BA8nvQDZzYFey3UusX70Ptk0SHkUk0V3 H/zg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f123si14304490pfa.364.2018.04.24.19.50.18; Tue, 24 Apr 2018 19:51:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751245AbeDYCpY (ORCPT + 99 others); Tue, 24 Apr 2018 22:45:24 -0400 Received: from mx.socionext.com ([202.248.49.38]:40310 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841AbeDYCpW (ORCPT ); Tue, 24 Apr 2018 22:45:22 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 25 Apr 2018 11:45:20 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 4A02E181EF5; Wed, 25 Apr 2018 10:46:25 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 25 Apr 2018 10:46:25 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by kinkan.css.socionext.com (Postfix) with ESMTP id 240DC1A127A; Wed, 25 Apr 2018 10:46:25 +0900 (JST) Received: from [127.0.0.1] (unknown [10.213.134.37]) by yuzu.css.socionext.com (Postfix) with ESMTP id F0F63120423; Wed, 25 Apr 2018 10:46:24 +0900 (JST) Date: Wed, 25 Apr 2018 10:46:24 +0900 From: Kunihiko Hayashi To: Luc Van Oostenryck Subject: Re: [PATCH] net: ethernet: ave: fix ave_start_xmit()'s return type Cc: linux-kernel@vger.kernel.org, "David S. Miller" , Jassi Brar , Andrew Lunn , netdev@vger.kernel.org In-Reply-To: <20180424131731.4458-1-luc.vanoostenryck@gmail.com> References: <20180424131731.4458-1-luc.vanoostenryck@gmail.com> Message-Id: <20180425104624.4594.4A936039@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.70 [ja] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, 24 Apr 2018 15:17:25 +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 Thanks for fixing. I think it's preferable to add 'Fixes'. Fixes: 4c270b55a5af ("net: ethernet: socionext: add AVE ethernet driver") Acked-by: Kunihiko Hayashi Thank you, > --- > drivers/net/ethernet/socionext/sni_ave.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/socionext/sni_ave.c b/drivers/net/ethernet/socionext/sni_ave.c > index 0b3b7a460..95625bca1 100644 > --- a/drivers/net/ethernet/socionext/sni_ave.c > +++ b/drivers/net/ethernet/socionext/sni_ave.c > @@ -1360,7 +1360,7 @@ static int ave_stop(struct net_device *ndev) > return 0; > } > > -static int ave_start_xmit(struct sk_buff *skb, struct net_device *ndev) > +static netdev_tx_t ave_start_xmit(struct sk_buff *skb, struct net_device *ndev) > { > struct ave_private *priv = netdev_priv(ndev); > u32 proc_idx, done_idx, ndesc, cmdsts; > -- > 2.17.0 --- Best Regards, Kunihiko Hayashi