Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1964792imm; Thu, 20 Sep 2018 05:50:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbyvMifH+lk8Ky1osxtWtIcBQIGw1WKdAqsz9dZ3+qSyfpzHW66K0gjrIR8h9v+JalHoyL7 X-Received: by 2002:a62:2646:: with SMTP id m67-v6mr41646233pfm.254.1537447853095; Thu, 20 Sep 2018 05:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537447853; cv=none; d=google.com; s=arc-20160816; b=x+mfZanMq3c6/ovHboflrJKPTmQuvyaaMsbrjMpJTki5w1lsVr+ZRE4FxX62SALKfO w2xcgu5mq0tMqMSMG6sO176LcJob+qZ6Xc/0eNz205twfFAATMBied4bdXKSZmvmUXEZ i+2/PXFKKbNRevC0IEHaqy/AKpIEv7juFnSWhGi4lmpGeIZUvyxHBQdfMOskSDE84CB+ 1N9gK8SQP9IZaktvajPEULt2zGIcmUI0tG+lM5sdQSMo5xdL0RoWoPiAbasc6rc1Hul+ 0R1VP84tIrhy2r96oU7n6RxhGmztY/uzUbHx3j1B3HIjyIi/whOegnnU8EnAQyj2rfSh BmFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=qbOrxPkwuCtsJANw1Ie9O0nHgVbfR7NfdAnfaTEqdDA=; b=EmxJFAvLm3E2piUOpvssFDbVqulTpM9incR9muF/90OKaKSDBY2ngWUUKLjBZR6n4O XyR88EW/hDxrXtJystRjUKYLbRFx7HzMMXys1zhgEOhGPy9yi39lo10yEuLldo7fgLAk NlHARVCT5SwzAl3MFrFkLPzPH26bHBvbrGPhE21kreEVlCGz67ZvYB/AmXKBrS/70G1t v68eyktFRiOiQ5vBb3163UcsUMK6GzQOiH2DhkHoYal3bpCKvyP/HfBF6BD4VW5LMh36 DPNsi4xScg/y+QhIatgXM1sng0YMv1OQj6+RadTak1EIp38I3hBm3hLL6M98cfF10k0D XPpA== 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 x7-v6si4679480pga.638.2018.09.20.05.50.37; Thu, 20 Sep 2018 05:50:53 -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 S2388205AbeITScC (ORCPT + 99 others); Thu, 20 Sep 2018 14:32:02 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12645 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387824AbeITScB (ORCPT ); Thu, 20 Sep 2018 14:32:01 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 75433C2709B1D; Thu, 20 Sep 2018 20:48:36 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.399.0; Thu, 20 Sep 2018 20:48:29 +0800 From: YueHaibing To: , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , , YueHaibing Subject: [PATCH net-next 12/22] net: ovs: fix return type of ndo_start_xmit function Date: Thu, 20 Sep 2018 20:32:56 +0800 Message-ID: <20180920123306.14772-13-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: <20180920123306.14772-1-yuehaibing@huawei.com> References: <20180920123306.14772-1-yuehaibing@huawei.com> 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/openvswitch/vport-internal_dev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c index bb95c43..26f71cb 100644 --- a/net/openvswitch/vport-internal_dev.c +++ b/net/openvswitch/vport-internal_dev.c @@ -43,7 +43,8 @@ static struct internal_dev *internal_dev_priv(struct net_device *netdev) } /* Called with rcu_read_lock_bh. */ -static int internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) +static netdev_tx_t +internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) { int len, err; @@ -62,7 +63,7 @@ static int internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) } else { netdev->stats.tx_errors++; } - return 0; + return NETDEV_TX_OK; } static int internal_dev_open(struct net_device *netdev) -- 1.8.3.1