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: 9585031 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 072776042F for ; Tue, 21 Feb 2017 16:16:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9A4128582 for ; Tue, 21 Feb 2017 16:16:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE60E285F3; Tue, 21 Feb 2017 16:16:52 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2B8F528582 for ; Tue, 21 Feb 2017 16:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=mJLqYyZev1R6bE+lPDgjuXq33zuNwkO2G/Qi4JNYKwU=; b=M+aAig5bBA0jtuU+1vWFY11xpL Dp7KIwcHGPRjM6aedlYIfmxwKZpsxVXTI4FGDtBCfo9oI7An5MxwZ1wlIRJmwG3StrSrJzw4PA2rY hNw/QYqn3pwon2n+mXuqKs42tg87f34EoA/HaXHSAbUfJdzM7avbjzNFnwoKRBvVIQ1zPotB7APSI Anl5oT5bLB2Ohk0u9oON9X/R1WROqXM4wOXkrZplfAgbc2AU8DLebRe7LKmsU0mFOXHfaNBeN3sU+ UoXMcwOS6vkQsLK/VhjBM7a0QRVymbbFc5HfyWkcnJ6vSb9fT6zrvtUMFFj+sXP36XeDxn5sdi+bE ccbMI5Gw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgD7I-0006sI-JR; Tue, 21 Feb 2017 16:16:40 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgD7C-0006af-OV for ath10k@lists.infradead.org; Tue, 21 Feb 2017 16:16:37 +0000 Received: by mail-lf0-x244.google.com with SMTP id z127so9536913lfa.2 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=UKqFOQEQqcoQVAG+cJdCamo0xkfVnTFmr9QULe862SBALUS5/jT6L7Bw4MXsITFk8d BvTgkbDSbpQLrnlFVfGxu71ZRjMY8PyE5+UxmpaxMOpluAURKuFG5zg/CDUi9bI0Kjnn AyPobmjwPuU52ZJ9RWEeMNNpKamTgOLCuBKiMgAa0aHRbj4UzVjqZftmr4egNA61abzg ltDgnAy7pixtP/CTrm7KjeyPiOsyOYoy78eboE5tR+mNBDb+wqcm7MDRMZ/jz+InZ9QZ 2jZMLlHKSzbqEhVJCkgT0qMSaxns4L310KL+pZs6hxWE+D/AM0MuPg6ZAEYi1L6lA8vu U8mA== X-Gm-Message-State: AMke39kUVUxObMVf/O+y/7YqYO8aEKzh+CqDBKZlp6yQUjHL9pedW5D69Z2VYM/UshRaFw== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_081635_148493_8A456587 X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erik Stromdahl MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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