From patchwork Mon Nov 14 16:33:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9427917 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 B8EAF6047D for ; Mon, 14 Nov 2016 16:35:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B662D28A38 for ; Mon, 14 Nov 2016 16:35:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AAD3E28A48; Mon, 14 Nov 2016 16:35:54 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham 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 5420228A31 for ; Mon, 14 Nov 2016 16:35:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933282AbcKNQfd (ORCPT ); Mon, 14 Nov 2016 11:35:33 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:35591 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932583AbcKNQf1 (ORCPT ); Mon, 14 Nov 2016 11:35:27 -0500 Received: by mail-lf0-f68.google.com with SMTP id p100so7512483lfg.2 for ; Mon, 14 Nov 2016 08:35:26 -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=7vmi+rhyWPnAXFcWLT+TStU9vvYzLHLgkh0Op0JLIyA=; b=RBNp9B5JaAUukuXY+T5zTxL3GVc2XxN+AfT/C07B/8YNWR2JOfFnk38U1aPWl7l2xk Mo2xIJVqLCAuwjj2f0ihGxZ4xhx8Xg7u2fhcxG9TaEeV0gvG/1k1vf+VKvbeJUKABExT fd+0ePzgSGYdfnxg3MUEf8ho60/vzzW88NlqSbTot7WLOhJzy5/x0nEmoV4sin5DtIHY K8nxjR879suZ7tG2CbBXfMDIeCfWOdgtKMugTSMuGwOpRzAOjv9pyCAigGa0OfQUBXPK 9/1s9PI1uGHWybfct9hYvbbXlTjkdw7I6dpDZPORiYXiOsKJctcGwLS8+vxeJnATNv1I SR7g== 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=7vmi+rhyWPnAXFcWLT+TStU9vvYzLHLgkh0Op0JLIyA=; b=RD2gSdV7x1ziXDbH+igclnB+lhuoTSyd8zkZUNZaGo0zR5MD/fnKzBL2/mZAhb5eBU QTflFNwLFCrmbDbGhYTcHINWdr9FlCOnHI5lA4HRsPHJgR88Wki52/X27Wbk2nKmDERd anNg4cNh2i4iG7WB2j+ePNTQLMJJbCtmBaaLipCHXWoNatYA9nd1vBM+91+2vFc6E4vb 9keR3jRKE2HKZz2PQDisnGKjESoc8NKipJTK1N48Bf7xCEQHNQiYZTuTiY81pMmPRtCq x9t29IwTGbnrhZjwTONYS2mo197BowBHVqpEqP1HzavuRNVMJtSqbhpcYDP2j/FmP/ok QPnA== X-Gm-Message-State: ABUngvc22D/J+hYde0DBp01GTVKLgzyGds2QFWproenhV0E1G2CYmqSvflm/CsCLEdsTgQ== X-Received: by 10.25.37.134 with SMTP id l128mr6878057lfl.120.1479141325524; Mon, 14 Nov 2016 08:35:25 -0800 (PST) Received: from erik-desktop.lan (81-233-218-8-no25.tbcn.telia.com. [81.233.218.8]) by smtp.gmail.com with ESMTPSA id w67sm5105849lff.16.2016.11.14.08.35.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Nov 2016 08:35:25 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC 01/12] ath10k: htc: made static function public Date: Mon, 14 Nov 2016 17:33:31 +0100 Message-Id: <1479141222-8493-2-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1479141222-8493-1-git-send-email-erik.stromdahl@gmail.com> References: <1479141222-8493-1-git-send-email-erik.stromdahl@gmail.com> 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 Changed ath10k_htc_notify_tx_completion and ath10k_htc_process_trailer from static to non static. These functions are needed by SDIO/mbox. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/htc.c | 14 ++++++++------ drivers/net/wireless/ath/ath10k/htc.h | 6 ++++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htc.c b/drivers/net/wireless/ath/ath10k/htc.c index 175aae3..26b1e15 100644 --- a/drivers/net/wireless/ath/ath10k/htc.c +++ b/drivers/net/wireless/ath/ath10k/htc.c @@ -57,8 +57,8 @@ static inline void ath10k_htc_restore_tx_skb(struct ath10k_htc *htc, skb_pull(skb, sizeof(struct ath10k_htc_hdr)); } -static void ath10k_htc_notify_tx_completion(struct ath10k_htc_ep *ep, - struct sk_buff *skb) +void ath10k_htc_notify_tx_completion(struct ath10k_htc_ep *ep, + struct sk_buff *skb) { struct ath10k *ar = ep->htc->ar; @@ -75,6 +75,7 @@ static void ath10k_htc_notify_tx_completion(struct ath10k_htc_ep *ep, ep->ep_ops.ep_tx_complete(ep->htc->ar, skb); } +EXPORT_SYMBOL(ath10k_htc_notify_tx_completion); static void ath10k_htc_prepare_tx_skb(struct ath10k_htc_ep *ep, struct sk_buff *skb) @@ -227,10 +228,10 @@ void ath10k_htc_tx_completion_handler(struct ath10k *ar, struct sk_buff *skb) spin_unlock_bh(&htc->tx_lock); } -static int ath10k_htc_process_trailer(struct ath10k_htc *htc, - u8 *buffer, - int length, - enum ath10k_htc_ep_id src_eid) +int ath10k_htc_process_trailer(struct ath10k_htc *htc, + u8 *buffer, + int length, + enum ath10k_htc_ep_id src_eid) { struct ath10k *ar = htc->ar; int status = 0; @@ -291,6 +292,7 @@ static int ath10k_htc_process_trailer(struct ath10k_htc *htc, return status; } +EXPORT_SYMBOL(ath10k_htc_process_trailer); void ath10k_htc_rx_completion_handler(struct ath10k *ar, struct sk_buff *skb) { diff --git a/drivers/net/wireless/ath/ath10k/htc.h b/drivers/net/wireless/ath/ath10k/htc.h index 0c55cd9..858e19f 100644 --- a/drivers/net/wireless/ath/ath10k/htc.h +++ b/drivers/net/wireless/ath/ath10k/htc.h @@ -354,5 +354,11 @@ int ath10k_htc_send(struct ath10k_htc *htc, enum ath10k_htc_ep_id eid, struct sk_buff *ath10k_htc_alloc_skb(struct ath10k *ar, int size); void ath10k_htc_tx_completion_handler(struct ath10k *ar, struct sk_buff *skb); void ath10k_htc_rx_completion_handler(struct ath10k *ar, struct sk_buff *skb); +void ath10k_htc_notify_tx_completion(struct ath10k_htc_ep *ep, + struct sk_buff *skb); +int ath10k_htc_process_trailer(struct ath10k_htc *htc, + u8 *buffer, + int length, + enum ath10k_htc_ep_id src_eid); #endif