Received: by 10.192.165.148 with SMTP id m20csp4736897imm; Tue, 24 Apr 2018 07:38:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/yDliSzV8/6v0vnLKziEGHNdERUGWt/mP4uMAJUdyBuTFSFfrW0v737KsL3j+pCeY4CmBl X-Received: by 10.99.113.20 with SMTP id m20mr20625157pgc.144.1524580724291; Tue, 24 Apr 2018 07:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580724; cv=none; d=google.com; s=arc-20160816; b=FE+tOO5ZPEvN4Q80JVk6eYucvoGL04VlkJ4T2YnvazfYFitF5rcUjmMG6Kw3MeuzvE +aE+qMTsdHZA3Lmvkcd06NHeMI85PYnJyB7v0GAgE/Ptsup84zEISJFndHY11/XDCazh UMLS2yD4YClNizjpUoXgBbvsbxYlc8wi6epP72mJJL1+hxhwKIvHNVpgmSFsJGQR3Ja6 1aHqKBNF0mvV+rzXunnFSEqdYUqloUcQdPewPDgo9IEKACVTqZGbBvzm+JHZSDYi1x5+ 67Z6QUpMpJTz7EOjjD84txkul8VgzkQcnxsXNSmIdA/yekWLG/d3PPVz6zOXSU12X1KK vTzQ== 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=HjOpJaoP6rvtj3pc0U49e6HYUcGR16DU9Tx9J92rGF4=; b=Yh2SI92fgxBYjR00fnot2/JhckbPNTzGDITu7SnkXLvyFB1ETFmUobgAxlq33x45M+ tNdLTWGGJGbr2ZJv/Npur5qKeMmu7J0ONnP0VbQeUgzp7TrPZ5Pqv4vDY+VXsOuF6KpN 4gsFf/Bu8RlkVp3HzeP+ZtEAlcxcdxSEXJUJXIYnrfJZvKdS7clcSsxdE0WLuujmQYjt 3Q2fwnEAhKymmP/K/sU9v2HE+EoTWX4954giB2vidSyp2nceaqUJr8iz1NBr1CSzEl/b h+DS+Zmhn8T/R/F21YESZFsSkxfdZQMpc22+Pk3i8KdpnpoDedaJ1nI7RSFh/XJrKAe4 JWQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GscxORYq; 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 f3-v6si13855206plf.446.2018.04.24.07.38.29; Tue, 24 Apr 2018 07:38:44 -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=GscxORYq; 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 S934324AbeDXNad (ORCPT + 99 others); Tue, 24 Apr 2018 09:30:33 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40077 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933939AbeDXNRs (ORCPT ); Tue, 24 Apr 2018 09:17:48 -0400 Received: by mail-wm0-f66.google.com with SMTP id j5so808905wme.5; Tue, 24 Apr 2018 06:17:47 -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=HjOpJaoP6rvtj3pc0U49e6HYUcGR16DU9Tx9J92rGF4=; b=GscxORYqfeMieexsMZieewSVsZ+rpz+ZsAWZz4G9n30vTC1ZmEiGumr55R82fxJ04w bEgXKztd+DJKnrD+GYj1ZsyWoZBd7aUwwT7uKuOccfQcYn4KO0BQ6keybzqgeFS8AC+q WffM2w4mS7rM296y9z2qI6zmbUudRUqBiyy4aD0pNalYBCCRGCOcSZmlhXPet9To3ZvM xpg6UUu3mut2cSDnWFjmz+FUBzpVE5lkjnKgcscR5BvVcdfzMPiiCHATPE4TyZRM2028 BR+WVQVRnhK6gpOW+XxKqgSjbpZ13IzdI9s+uCc7aG0yXkVVDUe6nqQ6Bk8HNMoWXdcU pS2g== 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=HjOpJaoP6rvtj3pc0U49e6HYUcGR16DU9Tx9J92rGF4=; b=WaObvVCMTt9+7JeWCj5KAFN1RQ1Y3PBN2oZP5Gcv49LDO9hR0ET6ZGImHKL9UcrFdH TecnJsq5zSEoaOxHHxjm1DrYcOqkQx/EtXQLJPVM+6m9CdHmm2xScBoPjTubvNKgXr5/ zqHVVQGq1bcH1Sas2bMTAF+42iNcoHbIJmtbrS3oMB6DWhVWnwdsvd1b+T9M7kw15ktv /AVe5ANLQWCOhlHYTxnJXTHL0IGG3spBNgP3bAYFEZBBH1eUYHUaWZB7a1peAgfNkbYJ LcOQyMjtl3z5HEMjVY5vq4plOy6y8tiKNtQ5D/HVx7ADs8tpjgnHx4rsbmlRcFS3Zx3h 41yw== X-Gm-Message-State: ALQs6tA3eacS4E1yqnpviK+NYxsn4b0+YzS2DFK7NFfccQdYoylA/K2X HyBeiyT3aILV5FooO/aWba4P7NJFN+Q= X-Received: by 10.80.157.9 with SMTP id v9mr29329419ede.234.1524575866331; Tue, 24 Apr 2018 06:17:46 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id g59sm8629468ede.60.2018.04.24.06.17.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:17:45 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , devel@linuxdriverproject.org, netdev@vger.kernel.org Subject: [PATCH] hv_netsvc: fix netvsc_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:17:44 +0200 Message-Id: <20180424131745.4662-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 --- drivers/net/hyperv/netvsc_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index ecc84954c..d402fdb08 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -508,7 +508,7 @@ static int netvsc_vf_xmit(struct net_device *net, struct net_device *vf_netdev, return rc; } -static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) +static netdev_tx_t netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) { struct net_device_context *net_device_ctx = netdev_priv(net); struct hv_netvsc_packet *packet = NULL; -- 2.17.0