From patchwork Wed Mar 15 14:46:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 9625867 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 4AD826048C for ; Wed, 15 Mar 2017 14:47:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DF6825223 for ; Wed, 15 Mar 2017 14:47:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3301C26B41; Wed, 15 Mar 2017 14:47:09 +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_SIGNED, DKIM_VALID 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 E1B6825223 for ; Wed, 15 Mar 2017 14:47:08 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:To:From:Subject:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=24lA5IHN+oEo+Bmwgo4vluFk5j4v/xOcheNROIzq9ew=; b=AlBknE6rIZTVWl aLOeVkBkmRSsOmWZ4o1v8x0HAcW32MvIF4mGwLgudsjvxAuyUc0lPioianQOGJQLPwAI8YuY4tv3r VGKRSi7MwDLisTEp+uZeG/FdFfiNxZ2vwFO15dQIqw50YHCM0+ooyZ1iazuQpvUjiXIe92VQjb04Z ZpHwPnifTKxYCue8iGL8J5jl/MymXmUOd9REX4W7OtkniuTiI1oH6AjwitVRZJ/xSiv9ZshCRYJJn 8WA2GfIOrWdcKJfISXjQeRT28w/7AwfK47qWHVs7hhiqxy/Vr2ifDlN/UYGq3WhdrWq1zUDBXmGyy UXVPHzs3eTfQjlct+V4Q==; 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 1coACd-0005Yq-FN; Wed, 15 Mar 2017 14:47:03 +0000 Received: from wolverine02.qualcomm.com ([199.106.114.251]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coACY-0005O5-3r for ath10k@lists.infradead.org; Wed, 15 Mar 2017 14:47:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1489589218; x=1521125218; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sme3p4MH+WSDZp3pwPT59PiE6bpOHbxdSwYxwvFmcU0=; b=eDxpdcRCyOkDxaIf5PcOaHOGC7Chxkt7XPxjVk1vBqo2XiujnlHrVJ1o mj80bNw6Vo+NdeuSo+bsTtlewyAJ4f/pVqLh3p/zBDejTxL9AH7hvgNKz p7UXycOKVokHF5PF7UuuUINJQ806+2NuR4fP/dJ0CnAugvHvn7T1M4E0d 4=; X-IronPort-AV: E=Sophos;i="5.36,169,1486454400"; d="scan'208";a="366190849" Received: from unknown (HELO Ironmsg04-L.qualcomm.com) ([10.53.140.111]) by wolverine02.qualcomm.com with ESMTP; 15 Mar 2017 07:46:37 -0700 X-IronPort-AV: E=McAfee;i="5800,7501,8467"; a="1309098773" X-MGA-submission: =?us-ascii?q?MDH2PokxP3UJyAH7APwq7/illtMy+fLF7twBAn?= =?us-ascii?q?a1lRtv4aWlRRghmq8PyOjverjrgzFuSk85F77JclLVy8JCEjhXFqhBnd?= =?us-ascii?q?AwqYj4VpwX/dym6y9dT6cXtRJPDonG0lc7sxHbNDgW5oMqRZon2UmvW1?= =?us-ascii?q?UM?= Received: from nasanexm01c.na.qualcomm.com ([10.85.0.83]) by Ironmsg04-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 15 Mar 2017 07:46:36 -0700 Received: from euamsexm01a.eu.qualcomm.com (10.251.127.40) by NASANEXM01C.na.qualcomm.com (10.85.0.83) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Wed, 15 Mar 2017 07:46:36 -0700 Received: from potku.adurom.net (10.80.80.8) by euamsexm01a.eu.qualcomm.com (10.251.127.40) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Wed, 15 Mar 2017 15:46:31 +0100 Subject: [PATCH v5 01/10] ath10k: htc: made static function public From: Kalle Valo To: Date: Wed, 15 Mar 2017 16:46:25 +0200 Message-ID: <148958918536.25727.2964193903975854570.stgit@potku.adurom.net> In-Reply-To: <148958913141.25727.15769281552095255609.stgit@potku.adurom.net> References: <148958913141.25727.15769281552095255609.stgit@potku.adurom.net> User-Agent: StGit/0.17.1-17-ge4e0 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanexm01a.na.qualcomm.com (10.85.0.81) To euamsexm01a.eu.qualcomm.com (10.251.127.40) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170315_074658_317951_0605CC43 X-CRM114-Status: UNSURE ( 6.76 ) 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: linux-wireless@vger.kernel.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Erik Stromdahl 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 Signed-off-by: Kalle Valo --- 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 9f6a915f91bf..35e67c46e027 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 6ababa345e2b..f728ce7124cf 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