From patchwork Tue Feb 21 16:15:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9585005 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 2CE2F6042F for ; Tue, 21 Feb 2017 16:16:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B40F283A6 for ; Tue, 21 Feb 2017 16:16:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FB16285C6; Tue, 21 Feb 2017 16:16:26 +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 ADFB7283A6 for ; Tue, 21 Feb 2017 16:16:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753732AbdBUQQX (ORCPT ); Tue, 21 Feb 2017 11:16:23 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:36030 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753578AbdBUQQP (ORCPT ); Tue, 21 Feb 2017 11:16:15 -0500 Received: by mail-lf0-f66.google.com with SMTP id 90so4026443lfr.3 for ; Tue, 21 Feb 2017 08:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8zrvfGhRjdY3IFCvrs80/aUpPrsHOzQTrwI2HdpSfG4=; b=gmtP/PFJpLJJTsMDBmOKAICmn5GDPwpjMM0UR939dyE2MPldZjMg9GDrjIUHrBxKHy HnseA/hDZAT7j0OC2mweXzA3mE9ZOq91BDGCkzzNBh6FZj/yFR2FWxug4xUaAwNmJ0vk Z8BBqIxx45Xe7F67jPumnA5zvjd6AInz5bwOxJBJYDBJSNg2Yov1JBwyxjDwFxh2xGqR ycee/iDYdiagp4+02bsGCqe6C8tyfGaHLaBIveYagMHtFpnS+3YWy/hXnYp5uHIiwLCc ZcoO9tEJc/8YwQmoVirPy4Z8apMTGfJeMayjKnf1NB9xx40twQgVnuXlsas4mDohTbu0 Bd9A== 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:in-reply-to :references; bh=8zrvfGhRjdY3IFCvrs80/aUpPrsHOzQTrwI2HdpSfG4=; b=ARp71XcGejWq/bYZAMzmfxr7kZwpV7HHCrJHjnCPSBT1HSUx/9eVS+HFbMXaNoHHWi CepqlqdJ6d0k7PkeDmIOLdwAKZBA25DPzbYljtVEFpdtIwU2PVPK91gqKEJJYbD7aJum HCjrIGDSMmNKewRDhAp2bpzEn3F9v1uAVhsZ+veG8wvQ2OJnbCOyVuRK1Yz5IIfaxy98 L4Xm/EApdQpAHJNUT6hwGt0+aiQZdqMEuEdizi6W0da5EKHvfp2pJ8JAP1zo+xQJlqMo RsT5TkCcyAG7a+Er9Yja4xO0aFbFS1O0z56OG9mWvTjCNtHjrwx22Swual1g4t3r5j3Y WhaQ== X-Gm-Message-State: AMke39mLJhcVePvUCgRGzY6YAH2htwQguFd/CfgUckSs+JELYA4dlsv63T23WuQA2W+cXA== X-Received: by 10.25.23.76 with SMTP id n73mr8301863lfi.101.1487693773322; Tue, 21 Feb 2017 08:16:13 -0800 (PST) Received: from erik-mate-1604.lan (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id t29sm6336069ljd.39.2017.02.21.08.16.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Feb 2017 08:16:12 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v4 01/21] ath10k: htc: made static function public Date: Tue, 21 Feb 2017 17:15:21 +0100 Message-Id: <1487693741-10042-2-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487693741-10042-1-git-send-email-erik.stromdahl@gmail.com> References: <1487693741-10042-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 9f6a915..35e67c4 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 @@ ath10k_htc_process_credit_report(struct ath10k_htc *htc, 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 6ababa3..f728ce7 100644 --- a/drivers/net/wireless/ath/ath10k/htc.h +++ b/drivers/net/wireless/ath/ath10k/htc.h @@ -351,5 +351,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