From patchwork Thu Feb 25 00:08:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Fenkart X-Patchwork-Id: 8415141 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 57AB8C0553 for ; Thu, 25 Feb 2016 00:09:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7E609202F0 for ; Thu, 25 Feb 2016 00:09:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 98BDE202EB for ; Thu, 25 Feb 2016 00:09:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754253AbcBYAJQ (ORCPT ); Wed, 24 Feb 2016 19:09:16 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:35189 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753585AbcBYAJN (ORCPT ); Wed, 24 Feb 2016 19:09:13 -0500 Received: by mail-wm0-f51.google.com with SMTP id c200so5769742wme.0 for ; Wed, 24 Feb 2016 16:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ky4KKTgnmTX2rAuu6muGdL9jg6ao8AkELzW5OyLvYk0=; b=QoHn19xP5rCLJZr3A4zogGprVWMceEdxppwiKrkDLeW38MSwhf2iWNJKMKDz/t4TE8 5ZqGLZDdnzcb3CcUQ3luq+OB/O4j8Z4D35PGTvc03jsPAQC4wPVSqzktesSrU8od1DHr Zp1wEHmjNdTuj/KB+7FznHuchJWmZVKVgkchoRv1loPuX3ejiR0MVU3j0odsMyZLmkit /OPEQWGCXPF/L9AmMkglL4kQacJIgNhU0ndyMgjB2g0OqbovozSZOxw/IVn+oMrALLRT Os8a9lhUbxcRyGoEGbZ+JHVbli4IxjpNcBWr0pHfl8nD+JUSP6tB1ZGpA6VQ9bZHOLvm +GBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ky4KKTgnmTX2rAuu6muGdL9jg6ao8AkELzW5OyLvYk0=; b=HMfpaGf2wWy/UCOheoRJAb4ubsQUmyF3XSUAsq/8pRNpKjqTyRbpKTtR55zlPV0+Of mYntgRitBJBss6/k9Lg9RMzZuktajQr8HMzyj7Vm5eigHPQjLFA3eFZsDDNIdFzCAzeL dySIudEWEmET0CiyFcJKPUUznN5Rq9+ZrXDU6arF5DvWWV1l1R/qOmPsi/2bPVK+tI6M ++pMFmdDn3vFAwJxrk/V1aSA+OpvZJyU2QUe1CK0lDTL0gGGfH8w4KgzYToEXrMv0ID9 uUJ0mxxEjV47K+ja0Aqb/NEnNtCfzD4ExkE0E06zhZuI72eVz2c7kTD6p7BGtjeD9Wkd aTXQ== X-Gm-Message-State: AG10YOQp8y69O1N2iZ2hPzXwwupcymCX6nRM59bEJFtmAkqOl0yV7/U0tCcoXzpywhihVQ== X-Received: by 10.28.5.203 with SMTP id 194mr408156wmf.101.1456358951717; Wed, 24 Feb 2016 16:09:11 -0800 (PST) Received: from localhost (b195.sivinet.vp.cust.gts.sk. [85.248.57.195]) by smtp.gmail.com with ESMTPSA id h132sm527798wmf.9.2016.02.24.16.09.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Feb 2016 16:09:10 -0800 (PST) From: Andreas Fenkart To: linux-wireless@vger.kernel.org Cc: Amitkumar Karwar , Nishant Sarmukadam , Kalle Valo , Andreas Fenkart Subject: [PATCH 7/7] mwifiex: make mwifiex_insert_cmd_to_free_q local static Date: Thu, 25 Feb 2016 01:08:52 +0100 Message-Id: <1456358932-23114-8-git-send-email-afenkart@gmail.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1456358932-23114-1-git-send-email-afenkart@gmail.com> References: <1456358932-23114-1-git-send-email-afenkart@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP after factoring out mwifiex_cancel_pending_scan_cmd the function is noc called outside of cmdevt file Signed-off-by: Andreas Fenkart --- drivers/net/wireless/marvell/mwifiex/cmdevt.c | 6 +++++- drivers/net/wireless/marvell/mwifiex/main.h | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/cmdevt.c b/drivers/net/wireless/marvell/mwifiex/cmdevt.c index 61426b3..4b0f44d 100644 --- a/drivers/net/wireless/marvell/mwifiex/cmdevt.c +++ b/drivers/net/wireless/marvell/mwifiex/cmdevt.c @@ -26,6 +26,10 @@ #include "11n.h" #include "11ac.h" +static void +mwifiex_insert_cmd_to_free_q(struct mwifiex_adapter *adapter, + struct cmd_ctrl_node *cmd_node); + /* * This function initializes a command node. * @@ -619,7 +623,7 @@ int mwifiex_send_cmd(struct mwifiex_private *priv, u16 cmd_no, * The function also calls the completion callback if required, before * cleaning the command node and re-inserting it into the free queue. */ -void +static void mwifiex_insert_cmd_to_free_q(struct mwifiex_adapter *adapter, struct cmd_ctrl_node *cmd_node) { diff --git a/drivers/net/wireless/marvell/mwifiex/main.h b/drivers/net/wireless/marvell/mwifiex/main.h index f71f894..840e5d4 100644 --- a/drivers/net/wireless/marvell/mwifiex/main.h +++ b/drivers/net/wireless/marvell/mwifiex/main.h @@ -1045,8 +1045,6 @@ void mwifiex_cancel_all_pending_cmd(struct mwifiex_adapter *adapter); void mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter); void mwifiex_cancel_pending_scan_cmd(struct mwifiex_adapter *adapter); -void mwifiex_insert_cmd_to_free_q(struct mwifiex_adapter *adapter, - struct cmd_ctrl_node *cmd_node); void mwifiex_recycle_cmd_node(struct mwifiex_adapter *adapter, struct cmd_ctrl_node *cmd_node);