Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp645097imm; Wed, 26 Sep 2018 04:45:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV60xo5ndburYX/GqDghyGyZ/ViMMvD+Qenax9twzmQUMG1dIS9UUgJZFHvxgQzGCk+wxU6Cg X-Received: by 2002:a63:dd09:: with SMTP id t9-v6mr5219725pgg.370.1537962313541; Wed, 26 Sep 2018 04:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537962313; cv=none; d=google.com; s=arc-20160816; b=STK5J+oVESwg5mlY4plVswvzqMvlYgTFNZ9n+XtN4sdBaSxHzgT5X/KWpoNxz0gZH+ SFDxMJ6o0c6YAYO8HN5z0RHnbtcnAXTo5hwtXFI8bV5VsbM6GZJjh7WQxHbj5j8WAtvU piruFH/s7fhuo422mJMbKU4W1SByaIX+PPuh9QeRNvKU1pdwXR7TDvuxQdpVXd1ndza+ Fo8wVo6F/SN4VBBJqy/p2mqxn5EYAlJAuV6WUVI/z9TQvOmN5WEWK25ypSdcQWUILQRx U5/ncv5xOgZWPgx9Uu/EQTkRtgVFlJzwizRfsJiKWzsf2SRsd6fvn+la8vX+j1e1lRsx C0RA== 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; bh=/0jLIYr5QM/sLbm9thpfiw0Pd5sOgWOHaxa+doLjzIs=; b=qw+rK1fbkHqow3GrOHYVtVFo629HPG7LttujVjnDOw7VEUlTbSLczFyoAeuv3PxBk5 axEAfoibuDdgBDDPl4CNZylxMM8kh/mrGQv41ysm7GHqo2I9SN/QXSM8zlyhWEJ8IYo/ 0gGOy0bZS0b7waBk9+udkpy+QQcRadPYDU5H4StrVUa8KuNQo1o7weVrF5h491B8iBvS RC9WSZ3kFXjAa0cbd2B+tTbP3Lic9yE4KLpeUftrj08i1oSANdDWGKMwfOuUL6Vw3RjN X3ohBTpMPV8+egQQPqe6HWPk/+PBvZj9Ld2mchmkjb1DYH/7IfmIEhSobxapt0X25mlz 46RA== 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 j185-v6si5045450pgc.419.2018.09.26.04.44.57; Wed, 26 Sep 2018 04:45:13 -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 S1728337AbeIZR4J (ORCPT + 99 others); Wed, 26 Sep 2018 13:56:09 -0400 Received: from zimbra.alphalink.fr ([217.15.80.77]:55329 "EHLO zimbra.alphalink.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726602AbeIZR4J (ORCPT ); Wed, 26 Sep 2018 13:56:09 -0400 Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 2A83C2B52035; Wed, 26 Sep 2018 13:43:32 +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 sU3MTPeWw88H; Wed, 26 Sep 2018 13:43:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id CB6CF2B52098; Wed, 26 Sep 2018 13:43:30 +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 2-TJZTp5AAHW; Wed, 26 Sep 2018 13:43:30 +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 9359A2B52035; Wed, 26 Sep 2018 13:43:30 +0200 (CEST) Received: by c-dev-0.admin.alphalink.fr (Postfix, from userid 1000) id 6D19760177; Wed, 26 Sep 2018 13:43:30 +0200 (CEST) Date: Wed, 26 Sep 2018 13:43:30 +0200 From: Guillaume Nault To: YueHaibing Cc: davem@davemloft.net, arnd@arndb.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next] l2tp: fix return type of ndo_start_xmit function Message-ID: <20180926114330.GA1487@alphalink.fr> References: <20180926103839.28584-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180926103839.28584-1-yuehaibing@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 26, 2018 at 06:38:39PM +0800, YueHaibing wrote: > The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', > which is a typedef for an enum type, so make sure the implementation in > this driver has returns 'netdev_tx_t' value, and change the function > return type to netdev_tx_t. > > Found by coccinelle. > > Signed-off-by: YueHaibing > --- > net/l2tp/l2tp_eth.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c > index 8aadc4f..4173cb1 100644 > --- a/net/l2tp/l2tp_eth.c > +++ b/net/l2tp/l2tp_eth.c > @@ -77,7 +77,8 @@ 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) Return type and function name are generally kept on the same line: +static netdev_tx_t l2tp_eth_dev_xmit(struct sk_buff *skb, + struct net_device *dev) Anyway, Acked-by: Guillaume Nault