From patchwork Fri Nov 18 19:22:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9437215 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 D342060238 for ; Fri, 18 Nov 2016 19:24:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB15129900 for ; Fri, 18 Nov 2016 19:24:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE377299C9; Fri, 18 Nov 2016 19:24:16 +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 6616A29900 for ; Fri, 18 Nov 2016 19:24:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752785AbcKRTYO (ORCPT ); Fri, 18 Nov 2016 14:24:14 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:35571 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752301AbcKRTYM (ORCPT ); Fri, 18 Nov 2016 14:24:12 -0500 Received: by mail-qk0-f195.google.com with SMTP id n204so34262308qke.2 for ; Fri, 18 Nov 2016 11:24: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=7vmi+rhyWPnAXFcWLT+TStU9vvYzLHLgkh0Op0JLIyA=; b=uQQwSFgre1qFHmLlgZCxUwKJZAWQCgaTTb519GquwPLPVwmkWPGJ7pDJ3fUpSYSQou 85enQcIRHLw8C1o0K09k0+fqb6150rqU3AyGp988e+CsTrDc1RniWOZXZ5cuiLsLlN/Y KrU0wdFin63F4aYV9qeKZ2jnqh4Qw93mTepw0ggPIeGyNJcYLR7+5ClTQ44ZSu795xgH CEC6QpesfZZCja4nXSWZQezbMWbozPB4kd0nHNu3xQS3yJViVkhIWpzBQdfU9ObEDZ6e reFa9U1To1CHGefOFIlmuXSl4I74ftz2RMSrkNWE68XTf+jtm8PUa6FUkVB2buQzQrje e/jA== 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=NxosIRCnrlEUJh+he4UyCjgiwr5RF4jtLhu87zfyx1v9Bl9ED4WDlXZkO9wYvefcxd YVCGcXzr7nwIEeMtHo/9YFCQDn9H4cx+Cs4Rb8b/27707i9oU2KN3V6whj5mW3Wb6xbD XzQM7X3rMRvgqpeV20pNHwnY5ixL7Ba18/ioiiLvX/wbxdMX8wJ3BhzZE6GTXJWmC0PX +tkkfF16nF71pcBPJGTgKVqpviglu3GNNYK+WqGEruyCWWZ5sxqDRYYLCg4833Zl64W8 DBjZxa9rxDdsTA1+hB6t5RFts3/nxNXyODDQaZ/4/m8DFF4/6uRzZeOSUJHOak9jovM5 4ioQ== X-Gm-Message-State: AKaTC00f0qnaN8mcCY4KgWQ9dq31Oj45gCGGAqdjg+Pw5RvXkm/BCtFgn404364ePxqSCg== X-Received: by 10.46.71.18 with SMTP id u18mr766650lja.67.1479497051829; Fri, 18 Nov 2016 11:24:11 -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 23sm2623298ljf.48.2016.11.18.11.24.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Nov 2016 11:24:11 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v2 01/11] ath10k: htc: made static function public Date: Fri, 18 Nov 2016 20:22:41 +0100 Message-Id: <1479496971-19174-2-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1479496971-19174-1-git-send-email-erik.stromdahl@gmail.com> References: <1479496971-19174-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