Received: by 10.192.165.148 with SMTP id m20csp4735558imm; Tue, 24 Apr 2018 07:37:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/kmFex9K3P+m0iNawXP3RrL4ZMOuosHkfqPR6r83zdMc/5gN3GKd7bsuCT58Vbr3HibY41 X-Received: by 10.98.236.220 with SMTP id e89mr24370736pfm.33.1524580651425; Tue, 24 Apr 2018 07:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580651; cv=none; d=google.com; s=arc-20160816; b=Sjjs7dBluj7ZniBuJleqjt/DQ1UtJkbQKVJDMQBpijh4LNcp1pCcYoiN+x+V7MysDX AjSM3HuhRr4EkvQ6yXMvGQM2mZkfg942vhB5PmElB4dDPPxDpYZdWKZoqq5XbiKKczSA nybyBsnj7Aevt8DY8+A/o9wbNCsznRVrcy7zWRKaQd6ywHN9mj6cjwQJ5cWC7LtkE8wq 60Nd9SCLOaI0yTVbbZ1g2LHyhgy8GMbRCnu+1SWAEZ+ow9xR05K7tWC7G794T8WUu9mV /UE6tSOSbJ/qsrKgzwzVKc/36IByEdMAXxO6vcYiz9DHEWpeZm6K0HUhc7gFW874gSNM n4ww== 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=utmOcKaZHMnq6DaJMNWcu41XpN3SuNBNNqtzGR3pQ54=; b=u7zNwi5jloz2J5W+UfFbfFfXhZHlIyhmnn73DQTAC0pqIoAYAXtGfZ2OdUnFklyoZG mU6c+C0EXcE6MUsK1XvPs+fDCRkf2J2JCCmTd8E/CzZZX+Cv0FgR/EKZasuFAD2YkUHP yFCeMcaMFyXb4F0Vkq5PgYyHHh0Tx381XhMTqXWb61vstGILl6M2bjtzLzgZYESo0Rjf NCao38rP5TzrxU8v5VTohkvWyCpu4QgVb0zeJtxdER+YtpjEFdnXP1nk4eYwqTRDkAG3 qmtUwCQtqgiQKwIKRpz52I5ehh4I8F13LuLJhebUCJGfdqHs5yEHBoLAQ31eDRAvdzh8 P1cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JIAOEezS; 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 y5-v6si13874882plt.357.2018.04.24.07.37.17; Tue, 24 Apr 2018 07:37:31 -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=JIAOEezS; 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 S934049AbeDXNSY (ORCPT + 99 others); Tue, 24 Apr 2018 09:18:24 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54894 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934011AbeDXNSP (ORCPT ); Tue, 24 Apr 2018 09:18:15 -0400 Received: by mail-wm0-f66.google.com with SMTP id f6so908634wmc.4; Tue, 24 Apr 2018 06:18:14 -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=utmOcKaZHMnq6DaJMNWcu41XpN3SuNBNNqtzGR3pQ54=; b=JIAOEezS8Jh2fait42bls2OApZjpfntp9fKKJlbKtf6QwCS5DLdNqD0LM8OjOnRx03 Dc6OkJVEauZwHSNQW49wE25lTtoQHTYMnFQShlB4gGJ9nIf8yzs+Vzhfo6G3Yqyi+SXy PEcGv4BKk8FwIR50DR4cfRfJ5gaL84DfqlEOwH4c/zrAj7YaPXfHipUU4KIDFK3nzk21 Ab/SjNHiJIrc0QgYNqqGt156ZS8QBk+aLbYI9l1oKqn5DmBTorG5L4d5ZSnvsHhBo5FX c7l5ZifxQ0oLa3LEOrsQrQr2wfrPyi0POuVR/YDRb4OgJ0CMFyha2ofxFFUpu5sGHDhw eHUA== 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=utmOcKaZHMnq6DaJMNWcu41XpN3SuNBNNqtzGR3pQ54=; b=lFHwy46ANyfMIod2sxJiT12hzrzVt1xnna+gHir0vaXmGrP7g6BY5Oe7DiI2sAkaxx L72WwrztlBR84mNjDv4W/DbmtGPfSUWUddsJH3Fx7U8CTjimiBeoCAfMEZxay25BZLnS mqkdO+KW/dsIj9litgjeTTHzrFZydfJa2Kr8jONi+RQ4ttMaHKKvw6ZxEmGrycB9eXVj LyLIbXZp/RNUo7fAcTHEOlZ1ROYwiGME9pMBktd0RMKS1luWWcHBTmsIafQp24HLI7rP HVIHr/Z2PQePFLYf6AiqmRcUbrFqMjAl6gdZ4EkQjSJ0FqmZWact913qhbQDXuAlr1Os 6Nxg== X-Gm-Message-State: ALQs6tDyQY9pRI27qhNVEMcoQvBj/W3FS7R3HMOLLAZQVoDXTRfqqHxs oBTFKPkvhjJrUdFV+Z6Y8j44j7XyUjY= X-Received: by 10.167.211.78 with SMTP id m14mr23118184edr.108.1524575893936; Tue, 24 Apr 2018 06:18:13 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id p1sm8002577edm.0.2018.04.24.06.18.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:13 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Wei Liu , Paul Durrant , xen-devel@lists.xenproject.org, netdev@vger.kernel.org Subject: [PATCH] xen-netback: fix xenvif_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:18:12 +0200 Message-Id: <20180424131812.5014-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/xen-netback/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index 78ebe494f..bb944aa09 100644 --- a/drivers/net/xen-netback/interface.c +++ b/drivers/net/xen-netback/interface.c @@ -165,7 +165,7 @@ static u16 xenvif_select_queue(struct net_device *dev, struct sk_buff *skb, return vif->hash.mapping[skb_get_hash_raw(skb) % size]; } -static int xenvif_start_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t xenvif_start_xmit(struct sk_buff *skb, struct net_device *dev) { struct xenvif *vif = netdev_priv(dev); struct xenvif_queue *queue = NULL; -- 2.17.0