Received: by 10.192.165.148 with SMTP id m20csp4684089imm; Tue, 24 Apr 2018 06:53:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx48MibTxA3VbQvvdXyObzL6mi93p+5xR0KHOazuUS4jEFE0/XaGrDMcvX51IbGDIikGrJDbc X-Received: by 10.101.89.70 with SMTP id g6mr9814030pgu.391.1524577995583; Tue, 24 Apr 2018 06:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524577995; cv=none; d=google.com; s=arc-20160816; b=rY3+Z0TubLWESCCCnbWxNiaQMGu06iVldQTbL0QTE+DrYTLy1y3KdTVCqzmByIe5Pt mB2lUSU0PtQrs0/LAx4eob4TsB9lGh3dL0nGMriQYQp4qjtCrs67pA3L81I8LFysoqcw dvr7tKcNeRlddeNFHgQ6jbdxI/YfUb0a564cjVAYpW6dcGfEgRS9+qwG8cYHigYL+vLG dpe++d+gkCI52Xi6y6Zd0FfdRu3XS8+i9lZpgLX5m1i3+G248z4LPB4J4sR87U9gnH7y bmlQadY8Tn8s0cKwKJT4FWqbAZNSau1M1lWIEoNeOUu8XPoZtzTz9SAq7EofuCQebE7D tnvA== 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=jpJSjuGkNQqkvzu0uyLvGIcNUl3S2TWJ14EYNWjk3uk=; b=kUrBGq5bF4ZfOA7bwXyvkCaCtR6y1LI435b4Fgdvn1LEyQxbeDHyTMP38XPCdh9hvp W2kyjhLgXJUdpwWVEeypozi/e3f7yg/k/De6L9L+1wrTB3z975Cavw1zas4CelspL5G6 jRZ4632j8LXRbFojLuOcwuGCwQQL7YV1aIA4OMeTe/cUYCXpOAA/4orC9LuLCXW2zvJM eLKiKM/no70Z/v5u28XXcNuMznTnR+bRsGuSI1ML0gfLzsemQE4MkbtrM5smEfpgdwJT eR7NkAHUmHtxBDcgiQ+ED8lfS74gMinJnmXUDmChCRAoW234dhhgB2+RMtlbV0InhP11 N2rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RHiRQAPc; 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 u7-v6si13546399plr.165.2018.04.24.06.53.01; Tue, 24 Apr 2018 06:53:15 -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=RHiRQAPc; 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 S933625AbeDXNQL (ORCPT + 99 others); Tue, 24 Apr 2018 09:16:11 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:50763 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933566AbeDXNP4 (ORCPT ); Tue, 24 Apr 2018 09:15:56 -0400 Received: by mail-wm0-f65.google.com with SMTP id t67so898827wmt.0; Tue, 24 Apr 2018 06:15:56 -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=jpJSjuGkNQqkvzu0uyLvGIcNUl3S2TWJ14EYNWjk3uk=; b=RHiRQAPchwxBz1o9GoKG029QwlAB9Sfou0NbmBM5tZAO4ZqZuP0XUl+NS5ByQjCaOA /zI2esvL5k6qJwcWthPuzhVCvkH/0i3iIG1hguVmOep8HtK/VLjxGEwUSFfJnogOmZPy mkpKUXcnrj2mbsfqu/NKUEN+pU8uf91kgH0fgTpboKAndREE7PqQHNPGmmCxMpipM2La SwhW8WQmf7Smu3qYgODAF0jhzmGIHjF+CdiqbRcMHRDqStNf7Zpa76fgD8lZHqgk9nC8 aaiRLh4aMBM/l2+q5K29qwyDBIxuF72x4yh3GPHW0dq4v+IOMqiYGt8Wk0hP+a+ChxOF Zykw== 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=jpJSjuGkNQqkvzu0uyLvGIcNUl3S2TWJ14EYNWjk3uk=; b=OMLZBQsp6OT7MdaeD/iqK/tt2eD1R4hNnDY+yxe7gh4sAkRT/9tOKyPASJZVjvsbaK B10TjXnsZtpBQLHbNJiNjS9teaOi9xDKovwu8hILPtHaAUIRUXoaT4xPH/9y9hIsOBiJ gPdj59XxFbBnLFO9liXv8KZC+X+KfLxmKRBf/gWZiRmSwPSeqAvnUMEmHTRoyUBFtbrd 1x6nFuPDt8lm4cJYLG9bOL8qfFANvImN1Zh6I6nQkkiXJdX/gg7DX9BTOvs2g4ib7rzr qgEUGixoI65LW4EUKc2UEulBbw0AqtsBcHHSsr+mcfyq0yIS8v0bFMWLUOYE5IhjhrTN /Z3Q== X-Gm-Message-State: ALQs6tDQuNTPuo6Kg6Ev4fzDLXJZKufvC76R7NVHE1So8xYIgN8N3XbW 8nc662Zjc2H+DlufBfC/FJZO7XiO0dM= X-Received: by 10.80.202.77 with SMTP id e13mr34019118edi.304.1524575755251; Tue, 24 Apr 2018 06:15:55 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id d9sm9070658edm.74.2018.04.24.06.15.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:15:54 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Mauro Carvalho Chehab , Johannes Berg , "David S. Miller" , Stephen Hemminger , linux-media@vger.kernel.org Subject: [PATCH] media: dvb_net: fix dvb_net_tx()'s return type Date: Tue, 24 Apr 2018 15:15:51 +0200 Message-Id: <20180424131554.2910-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/media/dvb-core/dvb_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-core/dvb_net.c b/drivers/media/dvb-core/dvb_net.c index ba39f9942..10f78109b 100644 --- a/drivers/media/dvb-core/dvb_net.c +++ b/drivers/media/dvb-core/dvb_net.c @@ -1005,7 +1005,7 @@ static int dvb_net_sec_callback(const u8 *buffer1, size_t buffer1_len, return 0; } -static int dvb_net_tx(struct sk_buff *skb, struct net_device *dev) +static netdev_tx_t dvb_net_tx(struct sk_buff *skb, struct net_device *dev) { dev_kfree_skb(skb); return NETDEV_TX_OK; -- 2.17.0