From patchwork Fri Jan 13 21:26:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9516441 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 40FAF60761 for ; Fri, 13 Jan 2017 21:26:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3290028780 for ; Fri, 13 Jan 2017 21:26:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 279DA28790; Fri, 13 Jan 2017 21:26:51 +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 A0E9228780 for ; Fri, 13 Jan 2017 21:26:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751349AbdAMV0t (ORCPT ); Fri, 13 Jan 2017 16:26:49 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:35513 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751307AbdAMV0q (ORCPT ); Fri, 13 Jan 2017 16:26:46 -0500 Received: by mail-lf0-f67.google.com with SMTP id v186so7057057lfa.2 for ; Fri, 13 Jan 2017 13:26:45 -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=R0944NtOPu2J/zGkShPT7Pegvs14wZEP/9xVWM75Oixnbe7/9WaMCBpmE4/evvyojD SrBkqKD5tUaGdkYzj3FBO9NUDi7eynanUinjtREvz6ZGxqEMUj16XSEgnz160ONR0OFU UAByrKIP1PEVAmbSkTzDaQjvHMIWMtHXLBvc2o5AMdhGQlrmvEtvdz9TDFzDv0FF32SF ecIxV0mBG6y8ARhfk9DhuYlnSyoOxF26EYlTaJeY1My7VLAMdL50dY6ah5sDkonpL2ab 23OmjQCw4zKkZYDX6k+apdvOapY2w52woyZKfttXEflWfzy/4yhP3brA8b88Br4dksLQ Xolg== 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=k+JZ9W5dJoNMgYDhOjV9GGIqn6rx19aVa1KguTvP49dLz/5U48XysAH0BvRE1c0P6G 9XfbjqJlFumMavdQZ+foIViJbvhn3NjLsG2DUv4EJdsB03FSFYNTmk9ch/VjV6cqJFyg LNYcfO2q3k+iChIvoa4o/9w0TOdoGBS5HG0iw73yeXnYIvqJfE9q0SqBWUCmZo54NYrt H5109G/WSYdrvcmayW6S074erL/TU3PaVGilhMwlNJniohOuwOCUklBOyKIrM7vEbB+J SFWFjFT3v1b3qkElvcDnCDs7bVQnvJsjCpQUoc6fD3TX38EwFbh8piL7TJFL36UQCedd OTMQ== X-Gm-Message-State: AIkVDXLIrWRvUUacNuzhJ0lCZEb6vki9WdooOG2iGijmtow2cb//tK6m9uF7aF9KHDCnIQ== X-Received: by 10.46.33.75 with SMTP id h72mr7915476ljh.37.1484342804809; Fri, 13 Jan 2017 13:26:44 -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 r127sm4458010lfr.3.2017.01.13.13.26.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Jan 2017 13:26:44 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v3 1/8] ath10k: htc: made static function public Date: Fri, 13 Jan 2017 22:26:04 +0100 Message-Id: <1484342771-6160-2-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484342771-6160-1-git-send-email-erik.stromdahl@gmail.com> References: <1484342771-6160-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