From patchwork Fri Aug 9 09:26:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 11086007 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 48BAF1395 for ; Fri, 9 Aug 2019 09:27:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 348CE28C2D for ; Fri, 9 Aug 2019 09:27:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28B6428C42; Fri, 9 Aug 2019 09:27:06 +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 CAEDB28C2D for ; Fri, 9 Aug 2019 09:27:05 +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: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:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0ueu4Ih8gNKhtTK5HWwUFbEysBjeAF+SMGGJzgFYqwg=; b=VMgTC0gjg7q1d8 Vh++HWsjsRmxxjagH8dxZPwED2Hz4Zl2GfCk01moJ3rrK0Y6yHbBiDH6LbHgmdw9J9nUXPINdvg3e vABwfKDipOAJfaFWE3THgsu8JFkkjOrupE4P7EKCwbx7M8GaxdPUPyGC6bL0VoVEHSvfWb7M1KQmq J7mqiJzL+4dv6eVaowft0h0ALu2AhSMboHoWnqHxahyT3qhwRHnV0STby4wWon5yIHHdK8csoZ3sH OPoOwcI29STLml2lxnDkH1TSIf8J3KZ2QLHP7shO1XW83l36BsvnnbewmUXReQPYo34sCt2d336qa DatN4ea4+hpfO9ns+S9A==; 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 1hw1Au-0000kX-2h; Fri, 09 Aug 2019 09:27:04 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw1Ar-0000jO-St for ath11k@lists.infradead.org; Fri, 09 Aug 2019 09:27:03 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 53271608CC; Fri, 9 Aug 2019 09:27:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342821; bh=WVCys9cxLY3ei2eL+vp4eVPG6A6yHY+FC//FcxEfpzE=; h=Subject:From:To:Date:In-Reply-To:References:From; b=VIp63uR1YYbcprrt7ZPpB9/dSldCa7x3wWEjIe6z/X7SOKdjTPnJ83lZam/2+tdVd ZY90RNK5l4OWxhIP6h3lCU31OFmCuBf/GzF/w3sYiFvcdvwFuAQHH5h0kBcHvxHXGL QFxgypwzUhRDskAxhZZmx7vlpsnDfefzDkWgvfTQ= Received: from [127.0.1.1] (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id EA7BF60CED for ; Fri, 9 Aug 2019 09:26:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1565342820; bh=WVCys9cxLY3ei2eL+vp4eVPG6A6yHY+FC//FcxEfpzE=; h=Subject:From:To:Date:In-Reply-To:References:From; b=J2riTmp8XE2IN/0oaDwpiBKpS+oVmzH9SSWBbvGF6kJHPdbbUOD4JRhGL1WCfZsnb sGKa+O6vNQ2J/h7oYwW1PqUQvleoxTS7pxvtD5nSjTWq+qlepeZPDFZGbVJRDiMOrH qds/QgvSpC2E4cgmMBkFOuvqEP9dRRM9sZDJzg38= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EA7BF60CED 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=kvalo@codeaurora.org Subject: [PATCH 07/15] ath11k: make static const in debugfs functions From: Kalle Valo To: ath11k@lists.infradead.org Date: Fri, 09 Aug 2019 12:26:57 +0300 Message-ID: <156534281751.30736.1189769148851226685.stgit@x230> In-Reply-To: <156534276745.30736.11736417077894270794.stgit@x230> References: <156534276745.30736.11736417077894270794.stgit@x230> User-Agent: StGit/0.19 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_022701_971979_0CF1ECE0 X-CRM114-Status: UNSURE ( 9.18 ) 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: , Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This should save memory. Signed-off-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/debug.c | 4 ++-- drivers/net/wireless/ath/ath11k/debugfs_sta.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index 2e3798cd7e99..2ebdd8fd9e81 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -745,12 +745,12 @@ static ssize_t ath11k_debug_dump_soc_rx_stats(struct file *file, struct ath11k_soc_dp_rx_stats *soc_stats = &ab->soc_stats; int len = 0, i, retval; const int size = 4096; - const char *rxdma_err[HAL_REO_ENTR_RING_RXDMA_ECODE_MAX] = { + static const char *rxdma_err[HAL_REO_ENTR_RING_RXDMA_ECODE_MAX] = { "Overflow", "MPDU len", "FCS", "Decrypt", "TKIP MIC", "Unencrypt", "MSDU len", "MSDU limit", "WiFi parse", "AMSDU parse", "SA timeout", "DA timeout", "Flow timeout", "Flush req"}; - const char *reo_err[HAL_REO_DEST_RING_ERROR_CODE_MAX] = { + static const char *reo_err[HAL_REO_DEST_RING_ERROR_CODE_MAX] = { "Desc addr zero", "Desc inval", "AMPDU in non BA", "Non BA dup", "BA dup", "Frame 2k jump", "BAR 2k jump", "Frame OOR", "BAR OOR", "No BA session", diff --git a/drivers/net/wireless/ath/ath11k/debugfs_sta.c b/drivers/net/wireless/ath/ath11k/debugfs_sta.c index 83d65ea96c67..2ca3bc47e502 100644 --- a/drivers/net/wireless/ath/ath11k/debugfs_sta.c +++ b/drivers/net/wireless/ath/ath11k/debugfs_sta.c @@ -207,9 +207,9 @@ static ssize_t ath11k_dbg_sta_dump_tx_stats(struct file *file, struct ath11k_sta *arsta = (struct ath11k_sta *)sta->drv_priv; struct ath11k *ar = arsta->arvif->ar; struct ath11k_htt_data_stats *stats; - const char *str_name[ATH11K_STATS_TYPE_MAX] = {"succ", "fail", - "retry", "ampdu"}; - const char *str[ATH11K_COUNTER_TYPE_MAX] = {"bytes", "packets"}; + static const char *str_name[ATH11K_STATS_TYPE_MAX] = {"succ", "fail", + "retry", "ampdu"}; + static const char *str[ATH11K_COUNTER_TYPE_MAX] = {"bytes", "packets"}; int len = 0, i, j, k, retval = 0; const int size = 2 * 4096; char *buf;