Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1963563imm; Thu, 20 Sep 2018 05:49:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaCwN1ZgYqLwZOcV32y5tUY4t2bLOFG2myUJcb4bXgvVb+2RGqmo5gyImgczhkfBwNGxWIZ X-Received: by 2002:a63:bd01:: with SMTP id a1-v6mr36776287pgf.12.1537447781766; Thu, 20 Sep 2018 05:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537447781; cv=none; d=google.com; s=arc-20160816; b=RIsNOWuwSgpIEdKz+BOfcL0f/xfBMFk2pds3TmmvBM0hqjl4+5ybkPm6TVD906QH2L 3b2PnqTNMCxYtHcjwRW1F5RtysYOsLfBUz4MGXkd60bD54qZ6qQuasEwNpT4sgpv6XDN ZaRY4HHpa4m5/r4igcKL1h7Ee8VfQQIbOxOf13l+9h80AKmI8eJY4qlZ+d3rOU4P6tHF zdtU6ZkAMUhcl/KAzhirAh4uJ4uMuzDchH0f4kZrAbnw7w6WTUCnjX5nucnczCGcXxD1 kz6hojolPNi+pLwNDaQCYmaVD1NZtW4KR+gC1TzogK9FHQwDZSPyn2PBD0SLvzuMzKCR 5ChA== 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=gQkDCSXmQOBkwGMqh1kdnzqbXNf4qjFx6PJpJdX58nk=; b=yY/rTYMCQ3eoCm5BRV0jzQ3rPGtJhaqhnnWeaB20c7xXEhLXL4cvfcS82G9oQMEyFO B/nkHnIQwa/tJl52AE27/ujATyPUxjZOdBXP6rc5i0Czm+3m8X2DLP6z3KALjs6algwr WgdvYtjGqOpxpMZ4XCUFx8U7vYsONhZSFusSOgID5+r9e4qDof6jtLzxGi8nK0dpPUBv cqK1kTTJocefdzIKIY8/qtnAfDFKr68yRniucWR7nU+w9qpahk6kTBkHlOiarbyZCSPl k0UUW8s0Cq3mk2AiE3HW9uRXTHHA3sX9CSF8TB+ydBEPeYxcmVCAWwzVHzg+RTVzFlnW 6UPQ== 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 e14-v6si23468591pgj.413.2018.09.20.05.49.25; Thu, 20 Sep 2018 05:49:41 -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 S2388443AbeITScc (ORCPT + 99 others); Thu, 20 Sep 2018 14:32:32 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12649 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387920AbeITScb (ORCPT ); Thu, 20 Sep 2018 14:32:31 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 95D7487819F3B; Thu, 20 Sep 2018 20:49:06 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.399.0; Thu, 20 Sep 2018 20:48:59 +0800 From: YueHaibing To: , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , , YueHaibing Subject: [PATCH net-next 22/22] net: hsr: fix return type of ndo_start_xmit function Date: Thu, 20 Sep 2018 20:33:06 +0800 Message-ID: <20180920123306.14772-23-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/hsr/hsr_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/hsr/hsr_device.c b/net/hsr/hsr_device.c index b8cd43c..a067150 100644 --- a/net/hsr/hsr_device.c +++ b/net/hsr/hsr_device.c @@ -233,7 +233,7 @@ static netdev_features_t hsr_fix_features(struct net_device *dev, } -static int hsr_dev_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t hsr_dev_xmit(struct sk_buff *skb, struct net_device *dev) { struct hsr_priv *hsr = netdev_priv(dev); struct hsr_port *master; -- 1.8.3.1