Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp580430imm; Wed, 26 Sep 2018 03:40:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV60q9JKapdUKQvZPZ2BdBPyBdhUDgc5hp7uUgdeXpmTpPVM9ijJBGTfI2deaL/2SP5Nqg2Ne X-Received: by 2002:a62:1089:: with SMTP id 9-v6mr5745272pfq.30.1537958456437; Wed, 26 Sep 2018 03:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537958456; cv=none; d=google.com; s=arc-20160816; b=BUGeanKkxqmb0ZbcEkWSdt8HZlY+ASQuUBkeb0nybd/a6LKFoVLPDk2VarLOLX2cHa rUvbcxpBxxYRPj86XYbxribfJuaO9aI8ou8/dVd2dtsisII1FltmO1jewMB8dwVB+SlB GrXmZ0HnO/0HOuf/Um3a9aDuhraOTaoNy7op3Q8SqMmd6wVVtdkC6qtIsEaLX3cawtxb bO+5I1VlCTpzkRQ7jeflklVAKZqkJvRFAXKpN+RD+5N8HC3kV531BwciTGjIix/Zthwl jz14JOF7wSIzoFvnei3LQCXTcjXjNItTBZXsBJ/t3hoCmHRV7e0C1fyPlJHC+iBsjvr2 oyww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=aDzUuv6TRyRo9zzKSeVBx3+RSCaowJTAiUzFsLqi/qk=; b=xvd6DmnwtL1nXmBcI3HZohyT7qe3dNqRH2e20gdn2OFjbz6aInU1cjQbT8B3ZEmoRq FjTnKKMgaG3VFQlE+SypiSndWYmUDdiVYga0DX9XEE7vCjxqm3gl/0sF2om6nL0WAW/O P5ib0igg3hVElJYwrmdbI6ALXahSmYtYiJhVcQICmD4ONArPte2NSYQGF5PcGtF6U0jJ JkxIidzhI46cIKRKy51KWYgM3CU8Adt1dRNj92lpZfF8wXK1Gla72GfzKeAsaPRlozKO hZMBirJwUMJJQuxKjTklAzpGZB8r1Y52G3vtUCiU4j/eLzETtA03jnm0IqW4lM+iY62n 8VUg== 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 d24-v6si5163746pgk.315.2018.09.26.03.40.41; Wed, 26 Sep 2018 03:40:56 -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 S1727580AbeIZQvT (ORCPT + 99 others); Wed, 26 Sep 2018 12:51:19 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13124 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726938AbeIZQvT (ORCPT ); Wed, 26 Sep 2018 12:51:19 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 72C06510D2D18; Wed, 26 Sep 2018 18:38:57 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.399.0; Wed, 26 Sep 2018 18:38:49 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH net-next] l2tp: fix return type of ndo_start_xmit function Date: Wed, 26 Sep 2018 18:38:39 +0800 Message-ID: <20180926103839.28584-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { struct l2tp_eth *priv = netdev_priv(dev); struct l2tp_session *session = priv->session; -- 1.8.3.1