From patchwork Thu Jun 13 11:59:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhagavathi Perumal S X-Patchwork-Id: 10991635 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-2.web.codeaurora.org (Postfix) with ESMTP id 2B20E924 for ; Thu, 13 Jun 2019 12:00:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B98328488 for ; Thu, 13 Jun 2019 12:00:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F37F628BAE; Thu, 13 Jun 2019 12:00:58 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 82A3228488 for ; Thu, 13 Jun 2019 12:00:58 +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: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:In-Reply-To: References:List-Owner; bh=21SQfXW4QpFMjcABleOE5f7oFmqvh1xm1OvfDxLFPw4=; b=Hfi hHZbGSi3l4JvQ72ssgl0MYi7ZyoyCfy662fOJ/rMJizPgD4zR6rgupu39ZtkEhbpgaiEg3mgd51AD 1M0U0KssmJXKBg872dhxDgVrjgy7pKVZyMlRJCPvVty2gLZgAKEFwpx1qqdTU3pWWU536dGf3Kw5b Lw3aIuO4Q4SvCC3EAWSVsRxR5PO5yXi9GUv8I65MEPaur9PicgEm3i1jSWN2gOiyJfdbhgs9NEbPi gcA5CNFR8sA0DCbB2149p/s3E6rl+cVatwWWVWEszMZWASSwuK+YrrrXQDT2BHufzwTNVS6Dchzik 8M3FOZlX5FWtIdxyYEtfWLuBULpUfJw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hbOPY-0000y5-07; Thu, 13 Jun 2019 12:00:56 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hbOPV-0000xa-BW for ath11k@lists.infradead.org; Thu, 13 Jun 2019 12:00:54 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 91C4960237; Thu, 13 Jun 2019 12:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1560427252; bh=QUCgofVrYU/TzTzTH3y72xhEQP2RKVN5SG4MzpnJlyc=; h=From:To:Cc:Subject:Date:From; b=ggql7oDpwsUukFeKtj9izh1XatIQLepV/Md4XpjKec2eJMw7uFeEnP1aoDdrjSVfi cy7tlGVE5cd5k3WAb6AxVXuZuz+U/ljzbqJ33IE/IZEK492Tu1uqfAbNiBvFoE1zGq 9KG31sAzfIA2ZVzdftwQTIpm+xEyw5E/xKVGdG+c= Received: from localhost (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: bperumal@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 63BEF60721; Thu, 13 Jun 2019 12:00:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1560427252; bh=QUCgofVrYU/TzTzTH3y72xhEQP2RKVN5SG4MzpnJlyc=; h=From:To:Cc:Subject:Date:From; b=ggql7oDpwsUukFeKtj9izh1XatIQLepV/Md4XpjKec2eJMw7uFeEnP1aoDdrjSVfi cy7tlGVE5cd5k3WAb6AxVXuZuz+U/ljzbqJ33IE/IZEK492Tu1uqfAbNiBvFoE1zGq 9KG31sAzfIA2ZVzdftwQTIpm+xEyw5E/xKVGdG+c= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 63BEF60721 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=bperumal@codeaurora.org From: Bhagavathi Perumal S To: ath11k@lists.infradead.org Subject: [PATCH] ath11k: Cleanup in htt stats init function Date: Thu, 13 Jun 2019 17:29:01 +0530 Message-Id: <1560427141-24367-1-git-send-email-bperumal@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190613_050053_435994_FB1082A0 X-CRM114-Status: UNSURE ( 8.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bhagavathi Perumal S MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This renames htt stats init function and moves the function declaration into debug_htt_stats.h. Signed-off-by: Bhagavathi Perumal S --- drivers/net/wireless/ath/ath11k/debug.c | 3 ++- drivers/net/wireless/ath/ath11k/debug.h | 5 ----- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 2 +- drivers/net/wireless/ath/ath11k/debug_htt_stats.h | 2 ++ 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index e22e1c8..1658bb7 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -9,6 +9,7 @@ #include "wmi.h" #include "hal_rx.h" #include "dp_tx.h" +#include "debug_htt_stats.h" void ath11k_info(struct ath11k_base *sc, const char *fmt, ...) { @@ -1145,7 +1146,7 @@ int ath11k_debug_register(struct ath11k *ar) snprintf(buf, 100, "../../%pd2", ar->debug.debugfs_pdev); debugfs_create_symlink("ath11k", ar->hw->wiphy->debugfsdir, buf); - ath11k_htt_stats_debugfs_init(ar); + ath11k_debug_htt_stats_init(ar); ath11k_debug_fw_stats_init(ar); diff --git a/drivers/net/wireless/ath/ath11k/debug.h b/drivers/net/wireless/ath/ath11k/debug.h index 13973d9..189205d 100644 --- a/drivers/net/wireless/ath/ath11k/debug.h +++ b/drivers/net/wireless/ath/ath11k/debug.h @@ -139,7 +139,6 @@ static inline void ath11k_dbg_dump(struct ath11k_base *ab, void ath11k_debug_soc_destroy(struct ath11k_base *sc); int ath11k_debug_register(struct ath11k *ar); void ath11k_debug_unregister(struct ath11k *ar); -void ath11k_htt_stats_debugfs_init(struct ath11k *ar); void ath11k_dbg_htt_ext_stats_handler(struct ath11k_base *ab, struct sk_buff *skb); void ath11k_debug_fw_stats_process(struct ath11k_base *ab, u8 *evt_buf, @@ -193,10 +192,6 @@ static inline void ath11k_debug_unregister(struct ath11k *ar) { } -static inline void ath11k_htt_stats_debugfs_init(struct ath11k *ar) -{ -} - static inline void ath11k_dbg_htt_ext_stats_handler(struct ath11k_base *ab, struct sk_buff *skb) { diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c index ac217d9..ae3814e 100644 --- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c +++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c @@ -4482,7 +4482,7 @@ static ssize_t ath11k_write_htt_stats_reset(struct file *file, .llseek = default_llseek, }; -void ath11k_htt_stats_debugfs_init(struct ath11k *ar) +void ath11k_debug_htt_stats_init(struct ath11k *ar) { spin_lock_init(&ar->debug.htt_stats.lock); debugfs_create_file("htt_stats_type", 0600, ar->debug.debugfs_pdev, diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.h b/drivers/net/wireless/ath/ath11k/debug_htt_stats.h index a542bd3..ce49ca48 100644 --- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.h +++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.h @@ -1612,4 +1612,6 @@ struct htt_pdev_obss_pd_stats_tlv { u32 num_obss_tx_ppdu_success; u32 num_obss_tx_ppdu_failure; }; + +void ath11k_debug_htt_stats_init(struct ath11k *ar); #endif