diff mbox series

[07/15] ath11k: make static const in debugfs functions

Message ID 156534281751.30736.1189769148851226685.stgit@x230 (mailing list archive)
State Accepted
Commit bf1a82d6d7aad72a7bbcb14c938ed3dd974e197f
Delegated to: Kalle Valo
Headers show
Series [01/15] ath11k: rename per_transfer_context to skb | expand

Commit Message

Kalle Valo Aug. 9, 2019, 9:26 a.m. UTC
This should save memory.

Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
---
 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 mbox series

Patch

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;