From patchwork Tue Apr 24 13:18:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 10359857 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 19F52601BE for ; Tue, 24 Apr 2018 13:29:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D13928A5B for ; Tue, 24 Apr 2018 13:29:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0071828DA4; Tue, 24 Apr 2018 13:29:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8C9728A5B for ; Tue, 24 Apr 2018 13:29:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934314AbeDXN30 (ORCPT ); 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-Google-Smtp-Source: AIpwx4/NBit/oDsywZjD4nbipEXoUHCiw46D+erOVB6mTSRnZMuN73m1xhy5uhd7njMJ+Df/FhFhxA== 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-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);