Received: by 10.192.165.148 with SMTP id m20csp4736203imm; Tue, 24 Apr 2018 07:38:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+G2pDb++J1pLQ0mEvh23fGCTy5rdHQfnD8szoTjOwcoPwX4rwG8R61U7EjO4VQFp7fWhnu X-Received: by 2002:a17:902:2468:: with SMTP id m37-v6mr25754804plg.388.1524580687533; Tue, 24 Apr 2018 07:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580687; cv=none; d=google.com; s=arc-20160816; b=JMnIGPwR3vTuKv/MOKZNV8kqiHEMfzSte23YwnQVvYkmKKUqBpeszb/UtPhoLagaGp BAGFn2Bhbiho45mH9mpJM20Ow80boXu3m8OR2OJkg627VP2mrwDGEEMgOkeQRZ8ewZ4O erJSpimbtem8uTL8jY71fvBx6YfpVc4JVstxwsaP4r23lp6VqRsYOjqrGpyk6HyWcJL5 Uy7bddA5iL8EsIzOe/c/9AWSmwYPNPzHxbUQUS+XDWe65i3iOkH3WuX8eYdkl8LVIaqB 0cmLBz+TQPFt7T+hNhSBio3u69hp6l4qu9NAbBfNe6L/lXFFFqXK6oJtiREU5JaA78bf evXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=7LApAivobM1uAL+Ij7aifjounGersVJkeGGRgn9xlus=; b=oDu4GoxPZZoHfeNwuaVS7tTNlWZ1yNbu5fHexnE5GeS0JKjFz7Dovckj5KvZhol77b 8obehLE2D5+jatxLYQy0iaGEtIL17wwlWRKi35G3LNPSxahBYrPeXtHLOLC2aPEwaXNg GTD8j9pq5r6MbEa113J7RwUpAs9X7gCHm3Y463ZHE/zgJs2qTo+pwuEwTI//WbaKG2rg l4zmpxt/OXXXUGiZR2chx6scj9p8lh15I4YIXjxS4CH5P/v2yiZcOOeexW0SrigaUILw l1vdDj/PkNTc9ZCl7uE7guGY34idyw3wZgKdd+1XyKeXCYmumbqFkI/EUTRkAqjRdOhm KPQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uQdobdis; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5-v6si435257pll.277.2018.04.24.07.37.53; Tue, 24 Apr 2018 07:38:07 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uQdobdis; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934199AbeDXNZd (ORCPT + 99 others); Tue, 24 Apr 2018 09:25:33 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:55095 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934081AbeDXNSy (ORCPT ); Tue, 24 Apr 2018 09:18:54 -0400 Received: by mail-wm0-f66.google.com with SMTP id f6so913180wmc.4; Tue, 24 Apr 2018 06:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7LApAivobM1uAL+Ij7aifjounGersVJkeGGRgn9xlus=; b=uQdobdiskEd2ecbEUWw6XHrJDWhALwgc+nC435kBPv8R53qwnRV6X9P1tfFwZm6dKE inQiLZdJ0HwHkWvretm0Keufgcy+zTemSIsn4IChIBYo3GEvrLN4OaDWxmgrmzC+bAxh mLXgFkPvXV/goeySsQE/1FWs2my4/U0rV3Doeo2tqdceq470p2jGPju9E42u8cYqXQbV 5iXaMDaYoBKdaBcv1vk++zlX4A1WEh4Z/pRt+DpCr2kwF7BXqb8Uhe5LHgMqUNiFiDvH EjZzj+2wpbI3wrye0KD6HARRRXrnfnMjtDMyJ/ZewhaCtZ1o7BOijR7P+M6059H0CX9V zq5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7LApAivobM1uAL+Ij7aifjounGersVJkeGGRgn9xlus=; b=Yer+4hNGNTuExFiKjSwSyGtI2XNFCNFJj9Qwg4iGMKe/MX1Oa3bEULqNnkwPrujKuk rcrDBw5EvMYbE07BcIERG/Ba7CjgAn2R1iQHw6ffAT9b00iDpLiAOR5nqaz4fSRPKcMK SQM9LwTsTa/8gML17r+FQgqzvgOOzr2GKI7MdQve2nhRYnOAyn8XAfqRcYRC7PCAwsHk cW9flnt/vvpodiIJV0t2pgbuzPHuYR9uemQK4+EXr2TKkfVgmc/NsCREOwEw+a4JJwEM U6ZDn+tjLJJrrGBd8zCkPEDqDmnE6xp/kifFSLvsDQPPzPOL/Pl4oxfvDJv7rJNqJnNs ldQQ== X-Gm-Message-State: ALQs6tDcKvaEoUppfcVus1QcBpvtooqt/iLLygv3W46B2HXXZG+/6YaO C3tsIFWgnOXBjh1OPc3Vq+beXGn9YOk= X-Received: by 10.80.164.246 with SMTP id x51mr33128493edb.247.1524575932598; Tue, 24 Apr 2018 06:18:52 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id w16sm9244529edl.24.2018.04.24.06.18.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:52 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Arvid Brodin , "David S. Miller" , netdev@vger.kernel.org Subject: [PATCH] net/hsr: fix hsr_dev_xmit()'s return type Date: Tue, 24 Apr 2018 15:18:51 +0200 Message-Id: <20180424131851.5568-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.17.0 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, but the implementation in this driver returns an 'int'. Fix this by returning 'netdev_tx_t' in this driver too. Signed-off-by: Luc Van Oostenryck --- 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 b8cd43c9e..a067150f0 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; -- 2.17.0