Received: by 10.192.165.148 with SMTP id m20csp4773619imm; Tue, 24 Apr 2018 08:12:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Npml2ZkDpeOOqvpFHdK6EbVoP2t2dF2DeZPxux7VY6OiOpHAspV7pZW4yxKVv2IhWR50Z X-Received: by 10.99.114.80 with SMTP id c16mr20333980pgn.385.1524582732301; Tue, 24 Apr 2018 08:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524582732; cv=none; d=google.com; s=arc-20160816; b=E0L+zXCbKJfFfJR8tMOfe+L+wTE3f5RZ+4f2x6mTVrDA0pI1abdsnrY9E2/3GrphZp 2ZyGfHA3k43y1VD5uS1pEFjYDxXNwETZmT9d0VlEeV4yhhuNMhxTppGiPeGEauvQvw3+ Niyx7pV3fK8PqbMD5zlYUO8nonmLREBR2Fqb6PArWWTdbkJN0UkIfI9F3esEsW8HZHEO KxaAYsmQzMXOEZ/9uIRtD/II5/wuZXZvhDFGeex9RkR5aDvmQKnYkgbZ3z+iEdP+DKzl DXhDNJxMWLCa/D1imuPghl2QtIu2MzOVQTcefLTL61d+ioT28FMdkZjgDdunEOhrsFsB oqbQ== 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:arc-authentication-results; bh=h+FIDaeRNptJW1ozqiXncDwY3ljG5NKtkuArm23W5nc=; b=z1sijQDdVGo4aviE0+96p860Cfk+UB8EJiW6+x8Z2ueOL4J/unrRkF3x57IbNOp/5S AzqFfn9KImcjDB3bCxM/9Luy8TGEiviRiiyL1XwVN0yml31IPseDIOM1pfqtc/VnuvjX 8khg2V6blf5tszNAqKPUOsThxCT2ACmg/4Ot5OjhGgOaurtL4kgXCOjkgHXhEyLTyOds 2lDgJI5tFLT8tdXNVsLq2gNYiw5C9qPxsXskb5CkwFY8eQwWna7Av3kEw6FuDqDcYiaU J4ckYimNzArcBbmSRhQQjsJ49nGqRP9hxgMtArUQLIo2+hWAwguGx1GfwLNctZthhGl/ J3hQ== 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 66si13793044pfm.167.2018.04.24.08.11.57; Tue, 24 Apr 2018 08:12:12 -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 S1750868AbeDXPJU (ORCPT + 99 others); Tue, 24 Apr 2018 11:09:20 -0400 Received: from zimbra.alphalink.fr ([217.15.80.77]:41922 "EHLO zimbra.alphalink.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281AbeDXPJQ (ORCPT ); Tue, 24 Apr 2018 11:09:16 -0400 Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 9B41F2B52005; Tue, 24 Apr 2018 17:09:14 +0200 (CEST) Received: from zimbra.alphalink.fr ([127.0.0.1]) by localhost (mail-2-cbv2.admin.alphalink.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id dTjE7SECuwdd; Tue, 24 Apr 2018 17:09:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 3E5D22B5206F; Tue, 24 Apr 2018 17:09:13 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail-2-cbv2.admin.alphalink.fr Received: from zimbra.alphalink.fr ([127.0.0.1]) by localhost (mail-2-cbv2.admin.alphalink.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id KyMSNrhn1UsR; Tue, 24 Apr 2018 17:09:13 +0200 (CEST) Received: from c-dev-0.admin.alphalink.fr (94-84-15-217.reverse.alphalink.fr [217.15.84.94]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 09C752B52005; Tue, 24 Apr 2018 17:09:13 +0200 (CEST) Received: by c-dev-0.admin.alphalink.fr (Postfix, from userid 1000) id D3BBC6035D; Tue, 24 Apr 2018 17:09:12 +0200 (CEST) Date: Tue, 24 Apr 2018 17:09:12 +0200 From: Guillaume Nault To: Luc Van Oostenryck Cc: linux-kernel@vger.kernel.org, "David S. Miller" , James Chapman , Dominik Heidler , netdev@vger.kernel.org Subject: Re: [PATCH] l2tp: fix l2tp_eth_dev_xmit()'s return type Message-ID: <20180424150912.GE1440@alphalink.fr> References: <20180424131855.5618-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424131855.5618-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 On Tue, Apr 24, 2018 at 03:18: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 > --- > net/l2tp/l2tp_eth.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c > index 5c366ecfa..e027f8b54 100644 > --- a/net/l2tp/l2tp_eth.c > +++ b/net/l2tp/l2tp_eth.c > @@ -77,7 +77,7 @@ static void l2tp_eth_dev_uninit(struct net_device *dev) > */ > } > > -static int l2tp_eth_dev_xmit(struct sk_buff *skb, struct net_device *dev) > +static netdev_tx_t l2tp_eth_dev_xmit(struct sk_buff *skb, struct net_device *dev) > You could easily keep this line under the 80 columns limit by moving the net_device parameter on the next line.