Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2249526ybt; Sun, 28 Jun 2020 12:55:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqaZFBGTnJfO29mX+RRFcUi9pOK0Z1hP5uuyKcdzVSDp0IPZHNm5SnOenPIMJBcu2+Xwii X-Received: by 2002:a17:906:cf91:: with SMTP id um17mr11095116ejb.168.1593374157381; Sun, 28 Jun 2020 12:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593374157; cv=none; d=google.com; s=arc-20160816; b=eS8oHAzqMdTY61RvlK1fH4NA5UCsNEJdx41z6TfYGeD9+D6lBmAdS+6Frt3MjSX+ub +p0vZ2pWTs/QdnJ8YP/W9yowYhpRjJ7AcZepNe5jym467jaSdo/8PTsX1RK8t/Fqmt0s YyaLTCOr26I1hzfKAvoXYR+7KslmyPL83z0zny6EuaMVp5TCaxQKcyUe7VyEeASEtoRm Lu9/zrxyWsWeqzYr7mGYxl0M/XoD13Ha9nXrIQX8/IXCoA3wl/uug+k1P9lBtUHAV4J2 uQFwybH5x1Gg2PekpPON+SdIMrCy/JHt2qGAybYiYBF9dC9K6cLTL61znQ0kirABmDpe Wn/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y5AwQdwtfID2u/puIgMbLam+xf3huoq1vXnu8WamPow=; b=TrdpWouz5ngUv0sruh+JR/NGth1GKjbUSGNwz+y42Qul+JSIlmwalZmFlw5U9qt1Mb 24vyB2Njkg8oHooKmUYCFlWvtMZDTchXcAIz9fbolJYE5NEapleSm7s+af6zWa2dYLqN d+6izzAlzp0VDPPDkTcgpWf/9F8NVbvX0rPU9RxkTXTm9SMuqQQJs9GAdGycyradXcw+ ZolbmMgQXaiUC0nBA6MfgdTjnikdaJaBXp8104THzShe7G74LpCwG/BF0e4BWdJH4rgy BbV1dXXIgXpFDnoeFF/FrtAx1ZYYJDs6iVLCTJDZTfPT7HWNz+lMD1NJa1F6Pk1gg6Gk 0cYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FbhLWOsy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ce19si11612325ejc.304.2020.06.28.12.55.34; Sun, 28 Jun 2020 12:55:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FbhLWOsy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727007AbgF1TyI (ORCPT + 99 others); Sun, 28 Jun 2020 15:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbgF1TyB (ORCPT ); Sun, 28 Jun 2020 15:54:01 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6B13C03E979; Sun, 28 Jun 2020 12:54:00 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id n26so572289ejx.0; Sun, 28 Jun 2020 12:54:00 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=y5AwQdwtfID2u/puIgMbLam+xf3huoq1vXnu8WamPow=; b=FbhLWOsy5hN3Yj+XBZf75+l8rvYCOtk92ZDNUrqA9xFV1FBDxfTu8Cvv+VkrAm49na xn+Jz9hNP5JnYntKrVJ+iFF5zpcJHq/LNVcRWaxziTBLuiQ3ieXX7ARMisotVH+yObLq v281Qaq2x1w6xRJdyEteibsLPb4J1TAtn5fwozLdvYeQPnFR/n0qQRkB0xFIaPkELVhT bHpFBvzqUzz2jI0lRjNaHW8wySCE77anb9vjGaFUuy5hGjy73l9/4S1qZeQhcYpAIzZo 8NEonDLWpWCuKHYzzlLBNDNkuLHl1nGiab5XISls0+1NbcTy3hPfUv8BxrRsCll9JaSv 9UbQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=y5AwQdwtfID2u/puIgMbLam+xf3huoq1vXnu8WamPow=; b=Bfd+hDX9aFWnzZ2gtqCFbELE9eCFJcNNOO7rRctE/geu+uXF+27m2bKuhN9AwpG1o3 6/LCdbi+HqBEM8YjYPsSOMSM64WeEkG2WXgkNnMht24AeEqbX2n4Kh6OIgidNcC+xRzw EbT69Kf/yRlAPV9CHtBo5taCnMI12FLpaWwrDzw6F4CQCFTN8atoHG9QOj1KVEXBLPOt 2tvQZrgWurtHu7/4o/OL3Vd+cucaW35/2T/Ag9kRz51hSGMkKQcc+1krBGy+AL51RVlJ Jk0y5GQLfZBB5AzpMaMNtYv83zRa12ErIRCZYlnVjLjReittk52q3MEOPIPNpPv49pR8 YpeA== X-Gm-Message-State: AOAM531cY9nRNEDlqgTcNE+xVndCnM6S6+YG6cNrnfVCn2Iio477xhG5 H78s9bYL4vdVTqS3tL7iUCA= X-Received: by 2002:a17:906:23e9:: with SMTP id j9mr159779ejg.107.1593374039753; Sun, 28 Jun 2020 12:53:59 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:b7f9:7600:f145:9a83:6418:5a5c]) by smtp.gmail.com with ESMTPSA id z8sm15669531eju.106.2020.06.28.12.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 12:53:59 -0700 (PDT) From: Luc Van Oostenryck To: "David S . Miller" Cc: Jakub Kicinski , netdev@vger.kernel.org, oss-drivers@netronome.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Luc Van Oostenryck Subject: [PATCH 14/15] l2tp: fix l2tp_eth_dev_xmit()'s return type Date: Sun, 28 Jun 2020 21:53:36 +0200 Message-Id: <20200628195337.75889-15-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200628195337.75889-1-luc.vanoostenryck@gmail.com> References: <20200628195337.75889-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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/l2tp/l2tp_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c index fd5ac2788e45..3099efa19249 100644 --- a/net/l2tp/l2tp_eth.c +++ b/net/l2tp/l2tp_eth.c @@ -73,7 +73,7 @@ static void l2tp_eth_dev_uninit(struct net_device *dev) */ } -static int l2tp_eth_dev_xmit(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t l2tp_eth_dev_xmit(struct sk_buff *skb, struct net_device *dev) { struct l2tp_eth *priv = netdev_priv(dev); struct l2tp_session *session = priv->session; -- 2.27.0