Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4013580imm; Mon, 14 May 2018 01:00:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZolg+htOzsIOZM2NsEBkrYo9ym2WXkx+bRrJQTCB3JMpoE4Ud1zVHeP7+j5tNvwyJTIv2dm X-Received: by 2002:a17:902:6041:: with SMTP id a1-v6mr8747454plt.59.1526284827251; Mon, 14 May 2018 01:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526284827; cv=none; d=google.com; s=arc-20160816; b=iaRBrDtC1SGdfOOeTFQSoTDahrDi9isKwp2vzktHZQAb20HAK66IGa80IFQEd1JJyf n38zx8xZj5yOm8/QluOiXvKlZvpUUwNtEmegRd1ncTkFkGnnI5HOKwnMNyNaewVa7T38 bh3r23VIVfyEj+/9Kb1uZEp9X3fyRqZ63jLmJ0RQDbTq8EKV0G9mYlQvpsPz8YT/qk9M 5o7HiQXK1ex4C4ua8oLYF3eyO3kQV9pDLO4np+pYsuYQuQEVfDTzBgwk5sYPPffPZHJn qoXw4nYmYQ9YkUQMBPdZwoEX6LLpX5DmDJcVb3TvESOfDoQPhFZYGdEIURwLu78zSE9i uPug== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=ithgk1I3VvYeQUZJFG8JPoRNS6AGbMqrGc+x0lPOanY=; b=uoPbQf4kVcYcXelTRkrCnhpPx1/BYzVlejXi7aDhSu0ByVBS7ApeYEh53qvfV0inDh xnvkRf+6T4NBvNt0TxNJFJTKA9wOT7e0PW9t/iCORgo1P/m075zLH3pmKxceDfEcG68A 5466eNHkpYtQHk7saAdrVmau4SUY4HfjrsYzoksJpr4AObta0oPgSdxVTs2KAcJgnsJr aF/TzKttPYClP9GWeYbRuwfJmlNcYj81KDOdU1yGuO0Fzt/djDO57IN5OUmf+eW8hoNz 6+LS1WzhbaLnesXIv8O94YgV2AYeTLocirHxLp4raUmrWXfpOMnUuVWASjlBoqpIJEkT Skrg== 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 j6-v6si8798851pfb.25.2018.05.14.01.00.12; Mon, 14 May 2018 01:00: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; 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 S1752112AbeENIAE (ORCPT + 99 others); Mon, 14 May 2018 04:00:04 -0400 Received: from mail.bootlin.com ([62.4.15.54]:60346 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbeENIAD (ORCPT ); Mon, 14 May 2018 04:00:03 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id EEEE7208B1; Mon, 14 May 2018 10:00:00 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id C069F207AC; Mon, 14 May 2018 10:00:00 +0200 (CEST) Date: Mon, 14 May 2018 09:52:23 +0200 From: Antoine Tenart To: Luc Van Oostenryck Cc: linux-kernel@vger.kernel.org, "David S. Miller" , Antoine Tenart , Thomas Petazzoni , Maxime Chevallier , Yan Markman , Stefan Chulski , Miquel Raynal , Marcin Wojtas , netdev@vger.kernel.org Subject: Re: [PATCH] net: mvpp2: fix mvpp2_tx()'s return type Message-ID: <20180514075223.GC24660@kwain> References: <20180424131656.4054-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180424131656.4054-1-luc.vanoostenryck@gmail.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Luc, On Tue, Apr 24, 2018 at 03:16:53PM +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 I don't think this has been applied yet, so, Acked-by: Antoine Tenart Thanks! Antoine > --- > drivers/net/ethernet/marvell/mvpp2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c > index 54a038943..355910345 100644 > --- a/drivers/net/ethernet/marvell/mvpp2.c > +++ b/drivers/net/ethernet/marvell/mvpp2.c > @@ -6926,7 +6926,7 @@ static int mvpp2_tx_tso(struct sk_buff *skb, struct net_device *dev, > } > > /* Main tx processing */ > -static int mvpp2_tx(struct sk_buff *skb, struct net_device *dev) > +static netdev_tx_t mvpp2_tx(struct sk_buff *skb, struct net_device *dev) > { > struct mvpp2_port *port = netdev_priv(dev); > struct mvpp2_tx_queue *txq, *aggr_txq; > -- > 2.17.0 > -- Antoine T?nart, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com