Received: by 10.192.165.148 with SMTP id m20csp4736121imm; Tue, 24 Apr 2018 07:38:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/vJPb7i1pV0O98ZE66ZZxrxH2fbKexA0HIJXZYmTl9ryVtagQytzOIKgcXI6PtdsPvcH9j X-Received: by 2002:a17:902:9a49:: with SMTP id x9-v6mr24570073plv.94.1524580683813; Tue, 24 Apr 2018 07:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524580683; cv=none; d=google.com; s=arc-20160816; b=W16Uecw591k/XngguGTJ0tgcS5b6gG5Bi5trqVxM/pG0qs/SJVqGMT/OXuj/qBeyVP +/u1SSLoyR14X5aRnqXGEpbOHeGXAmdvycAORouD+RKptBbILAvtRPVpH/xNhJioPgJp sK2hWdQWy3Cgb+cqF6GYV1Z7sJqv8Doe/DrdM+Ltrms58K4ELV2eq0zf0V2B7PpCmud8 QzqKLiGGfn67Uil/54YU/HfXLdxWtNveHuKOUljbl67JXr+0fKYoau68vEc62hx5ewq0 TNRpF0k/cqvDCzMOcOzFSz4CI4kgnlHlOFd9saAUQy9K3CV5h5bWlI5YmeoLLf6lBRsy pDIw== 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=qsgvXsKbfBmnSPjyn38wPF7TilCRlBd5HIjANI2zE/Q=; b=N/HzHfPQp2DFuvYwmCfQH0mxnhBlqDt6XjJwPWji21UjNf1aiP2tK33/iqS8l5WVyT O8EvZ14bZJtsi6zSylqwIGqzoDIT8iCEFQ1oZ5bxrqPRRkLtmOedHvcQ+CliMjH9XHtW xz/Pdeulc4SNiB35SjtfI0vC5wDyCBuT1KMUZjSveeBKdkVXBOXq80PbCcGV8f1tk+YT KeZXAILiu5OVWUz/I0iqAG9tYWFz5aTyN/cT5rhvxnqq9ZbIYW2o9EeLaMAQhZXCuMsR q3s1i1jyRRvAOYvxGHiueF271DsWRx0EeW6qRx737w/ws9ayFEf+tX50dBcHrR8xFp6l ATPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NOuQRbjz; 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 c23-v6si13341260plo.80.2018.04.24.07.37.49; Tue, 24 Apr 2018 07:38:03 -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=NOuQRbjz; 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 S933784AbeDXNRA (ORCPT + 99 others); Tue, 24 Apr 2018 09:17:00 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54508 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933200AbeDXNQw (ORCPT ); Tue, 24 Apr 2018 09:16:52 -0400 Received: by mail-wm0-f66.google.com with SMTP id f6so899003wmc.4; Tue, 24 Apr 2018 06:16:51 -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=qsgvXsKbfBmnSPjyn38wPF7TilCRlBd5HIjANI2zE/Q=; b=NOuQRbjzr1CVIvY2eeLNH1Rm4SC+JyxEbGbwJ07Bs8X3YpglkioIQKljQVPS7vh2YW NEKiQTxEwBV4q17B0q8y00XVrZb7Sm08Uz0S3TH0WLsWlQuxgw2Lc9yraALwgWuBaAnK 7tDJ0/dzyNz5bYnzKfz7BBNGS4FFvXXOTYSwy+M1gsWeXh5BEPLQiZgOz2pZldDVefyI 0Y72ETBxSYGQ9+9PJd6jzPB2H6x02GVZ+G/5f1iJeSfEcHZmSCq/ZjwY5atoywFoVcrd HXi+kAv9xF9tlkwQjYqFWG3/EAyqufrnyTU4ZF5Kn/C37SOT+oTlNbMorNzatg7PFD+d u38A== 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=qsgvXsKbfBmnSPjyn38wPF7TilCRlBd5HIjANI2zE/Q=; b=rZZcuFeFNWHw9bBHjsWjtvQE7c16GZtaKyy4MUVRbT8AdLLAb0D8BkB2Sddgkc2dX2 x3jaD2Xk5Dix/1fguWZt+ifCaKXmRt/zeOZ8TpL1RULvaJobfYF54fb4JXeWtrJ38BPm Yy0dYKCzL1LnC0ko2NmTZE6+UnUetWzfIdXmvnhXP71RQ8ClKg8r/b0yCpeZ316Ri5r7 bzvPJEUwYF105ro7+Q/zSlOvib9/7bXqWsJD1ReD9NvkU39fM1Jpkmx+RsJTdzJAFqwY nCuoW0oYWxCuwdUCKdNg6m1R+HzaGjUb3rm2GBhvZdBg/TRlMju+dKXphkufzOjkpImw bwuQ== X-Gm-Message-State: ALQs6tCClkhgxd8KBB8k9cJLEalhqRMwDvVgc/vjHeBofoneds2mPCIu +WKq1Itza3ZmQoMT3zUhSS/tvO5WcpU= X-Received: by 10.80.213.158 with SMTP id v30mr25721219edi.167.1524575810489; Tue, 24 Apr 2018 06:16:50 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id n3sm8963316edl.27.2018.04.24.06.16.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:16:50 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Jeff Kirsher , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org Subject: [PATCH] net: ixgbevf: fix ixgbevf_xmit_frame()'s return type Date: Tue, 24 Apr 2018 15:16:48 +0200 Message-Id: <20180424131649.3955-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/ethernet/intel/ixgbevf/ixgbevf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 3d9033f26..ce217a2e9 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -4137,7 +4137,7 @@ static int ixgbevf_xmit_frame_ring(struct sk_buff *skb, return NETDEV_TX_OK; } -static int ixgbevf_xmit_frame(struct sk_buff *skb, struct net_device *netdev) +static netdev_tx_t ixgbevf_xmit_frame(struct sk_buff *skb, struct net_device *netdev) { struct ixgbevf_adapter *adapter = netdev_priv(netdev); struct ixgbevf_ring *tx_ring; -- 2.17.0