Received: by 10.192.165.148 with SMTP id m20csp4782859imm; Tue, 24 Apr 2018 08:20:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx48kafSz/zgCmZDE+rNGbEMxtz6LdKULs50sNp9eI0Wn/y77a/rlNIzc3KLDntkwsKbEgX9Z X-Received: by 2002:a17:902:3265:: with SMTP id y92-v6mr25549142plb.352.1524583218893; Tue, 24 Apr 2018 08:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524583218; cv=none; d=google.com; s=arc-20160816; b=PC6sd3n8CYVDs+qrPUt0OueVfg82VfYhN8hQJ3Uzt5w8spyC+b6lYTW5eY76LEaXsZ MoWRcUBJMaMIvy7nJL7WDnEzaMiKupCOoj5SF+ur9+qWE0PpPgEkY3RctHzoqBKnCmN+ saceulQjQRsUP4YOH+WTRhIZJXonhkcJEKDnHAB+97OiWzOQSqx7I/OFOCoqzIlzszAj pIlCnesZNS+KbnY+fRLnNE7rJ9+Ggf/5/cM1E7Mb39tQZuIRopoBZKOBXEZGCAoSg0Ti QbO7uuHbSQtlpZ4rMR8r5vnjH4JbodObjuZQeY4el14Tdl9jxBoNPRBVHZTYLewmzcuM ulQQ== 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=JfASpQPP+3L7gxa3ortJR017I6Zuwrdj20kZ3KF/d2U=; b=CERjDoozMxhx94r7H2mjs5ce96LKSnodmRzWU1pS1t4tYguVpAFWCXQlrq4+VSmAne 2VEhUP0eVYwyCj4Z9TVuuoyTS+8hhTb59LOSoPTTEVMgtcyrJed6xbEE7bSmYnm1tHBk M6JVpVvDr6oWlOsdC0EvF9ScJn1JPwfvGBlBqppKTgLu4cz+DA9xLWSL3vs3VSgYYAmh T0OVRRcOGs85mmc+4D4AJ5QI7Ok82GsIbckrMDYHFPxyRDZ3vjCdJWyLf0APBtCoPnY5 21fRoZiSK/6Ao/HgqF2CZGfWEf+9+pXfyskGw/YhwnTVK63U2iRLrUmNB7TWTA/ZrxQ/ ipNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cVMlGdTf; 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 u6-v6si908735plz.461.2018.04.24.08.19.56; Tue, 24 Apr 2018 08:20:18 -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=cVMlGdTf; 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 S934318AbeDXN30 (ORCPT + 99 others); Tue, 24 Apr 2018 09:29:26 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33903 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933819AbeDXNSF (ORCPT ); Tue, 24 Apr 2018 09:18:05 -0400 Received: by mail-wm0-f65.google.com with SMTP id w2so515609wmw.1; Tue, 24 Apr 2018 06:18:04 -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=JfASpQPP+3L7gxa3ortJR017I6Zuwrdj20kZ3KF/d2U=; b=cVMlGdTfFxf1qQRbFC8ycZoCaFeqPz/i+Xv4ywKsWJY+1ESetD9n56y8LyCfs/xST/ RnR5f8s8tcLbUNXbZHOihk0lO6zPHJIjo5G596ZYtYPla+aLhkMsa91QXZMi/dqkaJsz 0VzKQmlq7wJddRupBUHsUH0Lhmu0cOiBaJWw1By/xcm9NzbuZURzCZqvUls/YIlR2osm hlZh8aHTxZIuJOyjF4yATS0l8sn/BhyJYQsJcR+auoO/fkKvO7ur3oEPIeRvkmRt1Poz rEFgIWKHP0jCNOTE868bjMWFQCXsKJOkl488oCVMDxJA7HZ0QM4whTKfX0i6ngbBQn5V sIpQ== 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=JfASpQPP+3L7gxa3ortJR017I6Zuwrdj20kZ3KF/d2U=; b=cjG1+6QnrDRdKVkCXLrqH2SLzzAqZjb38LwkMaVnf0vb5DzyEly8muHEI9yoX8i/aK EKuKMFJobZMS3+s/RVW6pkwUe47/6l5YvxSEODS7zfoXRZkMbK9RCjCIa7hFPhUHjuAZ OWmliBZ3G7mopQo4L5+LrfiDhv7Jxtnxq8ODIdnQP6qgnB1HzI16/6QZU50enKWBAasp ii3uC6jw8brYZUHCHb3sGXUs9yEJJ3x9WlWM+AO57u6iHd0mdn8hjavunpEXH02rSPoK BtPTPn72KGtQBe8HqZCQlEiZXkXWS+asoDBKDZRVpOjqMUqIXS2sNgK0DngocPndqXAq VuIw== X-Gm-Message-State: ALQs6tAJlQ0cR8BmASDHLf7FVUC2Ipmd0U9kIchexV6Fb3vVE9etU/RM xQHbSc7u51ZkdR6s/9TjDp9Jjg0tiQ0= X-Received: by 10.80.167.129 with SMTP id i1mr33471372edc.32.1524575883978; Tue, 24 Apr 2018 06:18:03 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:40e7:cd00:5113:f351:d61c:108c]) by smtp.gmail.com with ESMTPSA id b47sm6288795ede.70.2018.04.24.06.18.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 06:18:03 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck , Amitkumar Karwar , Nishant Sarmukadam , Ganapathi Bhat , Xinming Hu , Kalle Valo , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] mwifiex: fix mwifiex_hard_start_xmit()'s return type Date: Tue, 24 Apr 2018 15:18:02 +0200 Message-Id: <20180424131802.4913-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/wireless/marvell/mwifiex/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c index b64845828..802fb3ecc 100644 --- a/drivers/net/wireless/marvell/mwifiex/main.c +++ b/drivers/net/wireless/marvell/mwifiex/main.c @@ -858,7 +858,7 @@ mwifiex_clone_skb_for_tx_status(struct mwifiex_private *priv, /* * CFG802.11 network device handler for data transmission. */ -static int +static netdev_tx_t mwifiex_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) { struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); -- 2.17.0