Received: by 10.192.165.148 with SMTP id m20csp4657809imm; Tue, 24 Apr 2018 06:28:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx48zZXtXQEjK4Le7Ala2ZodWz0Y+2jHLOFeDrVNOpnvNsN/2uoN9QenuPz/sZoKTDcUXxhfU X-Received: by 2002:a17:902:8488:: with SMTP id c8-v6mr25012584plo.357.1524576511192; Tue, 24 Apr 2018 06:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524576511; cv=none; d=google.com; s=arc-20160816; b=0rHmOnDBx0ZdygmKyQK9xScgfOdmZrMLlO/mej7zU034rS6wqVFQv3Qa8cb+aZCk4A y0DsIIiSY1krJsvJ1XNhZbCXrzG4/7WGNgI4wLHDA3ckeFq43GfxN+UoG7ey8l2vJ0n3 huVY6CsW1/7GKU+nUq/dms2EE16yrXkvwhV/yul4fBhO7L/TylnRLXKET9b8OGlPMAPc sAVSjjiCx1J9aAjlWAKckiPDIve/FUcNX4z1VVuVXMT/fAL7lze3mI8gU3LIQ2vDWtuU kf+BQHsUgByO0ACqAfApbe+JyLmP7ZCi5fRs5Xk+wZDalp4VYY42j4kuuSgbRz6ddaV3 9gSQ== 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=mBQLOeQruo9oEXSXBFHQAf6pQpaipFeKDgIQK7LhIF0=; b=usz80qdUKdfkOHQkTQZ3p4eLuL38MDChlBN7rEy2yyEv9gJVzV7bLviqTfU9uW2OaI FtWuj8dC++0RlhvnhByIi2Q3BEZzmF7+vumYwN4KFYcrFi3piWvtDJHUnPIzaJk9onSE GH1+4NtwAfSDu2keSJxht1VS65ZrFbEfJ9cpCDbCxgeaPxQRvPmzL1UXL5boZODgAhLs qHq7OpDOraXFQnvc0UkgEFQMtZA68YY/+FS+kseK/F+6uZWuJ5AhI9HGvfAoFQD/H2H6 xcYjdp9M0o77xjknoQ2x9IvjncFtlmo9uPuVIGW9nvgDYivEkgFAeJnqFQcNmHxC22k7 VQiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ibCn1+au; 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 e1-v6si1067180pln.445.2018.04.24.06.28.16; Tue, 24 Apr 2018 06:28: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=ibCn1+au; 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 S1758088AbeDXNZE (ORCPT + 99 others); Tue, 24 Apr 2018 09:25:04 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53834 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933911AbeDXNS6 (ORCPT ); Tue, 24 Apr 2018 09:18:58 -0400 Received: by mail-wm0-f68.google.com with SMTP id 66so911949wmd.3; Tue, 24 Apr 2018 06:18:57 -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=mBQLOeQruo9oEXSXBFHQAf6pQpaipFeKDgIQK7LhIF0=; b=ibCn1+aulK8PgpTvW3Qj7b5BRUiXAMPBRDnqsVXqwB2+jEgkX5ipb9Z555JEBDsEjS TRqPdX32/fS/HXvL4HP3iwfvLKT2Dre/n/dBJ12RDC5ZopOYZG+aQqPfGZUFijSuVCkK 7UnhOVcVlxfoiWlU7jPioEYkHRdKncH3YbI6r0o6exOJBfqGPNo6HLDBW5gVRqD2JTYV a7TbZtOBEk6ArAbAN3Xv5u7+hUG9Y7M5ONOBNow6mj0RQVhOVS6uV9nhZyqvDffQddj4 8kvfbJYH2Ij6b/W8hjWvzt0gcyu4bvaMlPJJToTUMJeKz+zGDHbpmJ+AgZ54JaiojUIE r1GQ== 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=mBQLOeQruo9oEXSXBFHQAf6pQpaipFeKDgIQK7LhIF0=; b=WQvOCN7n0IYDGIiqKDNhWDTpsyHufnizqpcSzHXUlcBf/o/SMDgSpBl6B51huDPatE GQZ5pTuGfGicsjCEw+c0XozsgXfHdgjHqXnIZymX2mvvSL1PKYIa7ll6jZsR3AlWOSQG YzN07C13b7VMpyE7VhzMY7NpAVN1kdYfCl+1f68eTKqaBGUfQQGZn8rxxXZCvwLUzEZ9 3YGXRPxAOz9eMG+u1IwIPUlO4sHrezGOSaM+iAgO0gIC2KTVO3gu8XNpujjjo682bEvn lGzBUZU11tj4ExNMkSVzJFuqyi9/XWaHIGjCQePeiwPYmCI31UysvA+apVrsIZ/jF8hK PkJg== X-Gm-Message-State: ALQs6tA17px9RyiCh9Ux6qIbOATDgB5hyAT8COkMBvV43Xr0gCuAGs90 g/8tL/aqvWA+7Yf0ZzPnMVaW0KxyHKI= X-Received: by 10.80.134.220 with SMTP id 28mr34263463edu.177.1524575936778; Tue, 24 Apr 2018 06:18:56 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id g7sm6163164edf.90.2018.04.24.06.18.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:56 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , "David S. Miller" , Guillaume Nault , James Chapman , Dominik Heidler , netdev@vger.kernel.org Subject: [PATCH] l2tp: fix l2tp_eth_dev_xmit()'s return type Date: Tue, 24 Apr 2018 15:18:53 +0200 Message-Id: <20180424131855.5618-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/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 5c366ecfa..e027f8b54 100644 --- a/net/l2tp/l2tp_eth.c +++ b/net/l2tp/l2tp_eth.c @@ -77,7 +77,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.17.0