Received: by 2002:a5b:f51:0:0:0:0:0 with SMTP id y17csp129899ybr; Fri, 22 Nov 2019 03:20:00 -0800 (PST) X-Google-Smtp-Source: APXvYqykZTakxwAWfWfu4bYTL9d2PMx+w6VVKbjn+J5q9Eg8ct4iuxCL1gzNNaQxhDJdiATsY5A+ X-Received: by 2002:aa7:d0d4:: with SMTP id u20mr391504edo.112.1574421576942; Fri, 22 Nov 2019 03:19:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574421576; cv=none; d=google.com; s=arc-20160816; b=Ohq3dwB7r4nTN9/aSUIO0YOjlN/mZGXsKgJ8Ry9Dm+5oLznmhQOz5uDxRYfFWwCsW7 ZfOubsxdN9U/tlULfk4kEQQJSEniEKzg+4NRQW9SwXegPMr06zpAw74LDGzqpvUYsKlA TRUsllPd/3omz74d5sBNe6yVclvi5P0jtN5zpVpYSEBx03QADlhlZTB+y3y6hxMfip+Z fU4OMkvs991JnstgWzTLdbpaI4RMBXDoGIsmFt9v5/0za4olkJDsbzwAqe9kAcvBjgsr MfwhZziydv3nsHQQyS+1SXgiIjiNwaXYlzM5RNbO72yGM1F4Sr1reIlD7wSRMBeOzBmh L0zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5oX6S1DTpa2P1XyhbK8Ggjvnzr7tV43ybKZSYsFouYE=; b=N5eT+EzCO+ObHigXYiWOvfC6zNQU6Hgr4fHHAEig1SRB7ezyEUOjcMSp5nPn5OfnYx p5IdhOAW0o0ozczpeD/VPfH9Y7aUKCRbXXnxc8g6mO8W0hhNl7q2tGpp4znJatx4q1Fx Hw6VMNILCF/gzS2hEaP5qSBMWyXjmtHpTs87rtrP4VS6twd+QYMYbRJlwo5i+0UvV0ao ofDrXL67grm6P1VQXASjcCAxD83QPLvuHYdqaf6bZlmawVkkO/uVMyE+LMvR68LFvz3c +ch4Ut+EkRUuj+uWeFghN70PJvFpGvXYfMnq79BqPeAb4zPhmk/lqhwiFWsozucPqcOW 5Acw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fTXP2fiu; 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 c17si1097201edc.384.2019.11.22.03.19.12; Fri, 22 Nov 2019 03:19:36 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=fTXP2fiu; 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 S1728412AbfKVKtx (ORCPT + 99 others); Fri, 22 Nov 2019 05:49:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:59474 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727924AbfKVKtt (ORCPT ); Fri, 22 Nov 2019 05:49:49 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 67BAD20872; Fri, 22 Nov 2019 10:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574419788; bh=mGM2iICIWnmG/JTWLsOe+qYgsPuoE13JMoQ2jwvaX3s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fTXP2fiuYmvxF+8U7KgftWSly5w3l8a3FP5bc+h6d5D/YEPFIrxCip5ad+M9kj/Nc O2x51OwEzx5vs9pxAuRHPqwpPNoGUaeA5B7MsRp8pMIl9yTPHskP80BTztc8nQd5Kp 47fUlUsmfxoH1ubKkhzZ3I6lShPTCwetu4+R4nJo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 010/122] net: ovs: fix return type of ndo_start_xmit function Date: Fri, 22 Nov 2019 11:27:43 +0100 Message-Id: <20191122100729.788558530@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100722.177052205@linuxfoundation.org> References: <20191122100722.177052205@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ Upstream commit eddf11e18dff0e8671e06ce54e64cfc843303ab9 ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- 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 1c09ad457d2a9..1083b5e901349 100644 --- a/net/openvswitch/vport-internal_dev.c +++ b/net/openvswitch/vport-internal_dev.c @@ -44,7 +44,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; @@ -63,7 +64,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) -- 2.20.1