aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-05-06 23:16:13 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-12 03:15:38 +0200
commit3fa87858a790008b145b6ef41e0476a36c256143 (patch)
treec1301b054079e5f9369860b0098f290af829c7c1 /target/linux/ramips
parentaa7a2d971e5117216dca6cd0d7c41efa9235b0e6 (diff)
downloadupstream-3fa87858a790008b145b6ef41e0476a36c256143.tar.gz
upstream-3fa87858a790008b145b6ef41e0476a36c256143.tar.bz2
upstream-3fa87858a790008b145b6ef41e0476a36c256143.zip
ramips: mtk-mcc: move cmd_buf for dbg under ifdef
Move cmd_buf for dbg under ifdef to fix compilation warning: drivers/mmc/host/mtk-mmc/dbg.c:51:13: error: 'cmd_buf' defined but not used [-Werror=unused-variable] 51 | static char cmd_buf[256]; | ^~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/files/drivers/mmc/host/mtk-mmc/dbg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/dbg.c b/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/dbg.c
index d897b12163..fc5f1e4985 100644
--- a/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/dbg.c
+++ b/target/linux/ramips/files/drivers/mmc/host/mtk-mmc/dbg.c
@@ -48,8 +48,6 @@
#include "mt6575_sd.h"
#include <linux/seq_file.h>
-static char cmd_buf[256];
-
/* for debug zone */
unsigned int sd_debug_zone[4] = {
0,
@@ -59,6 +57,9 @@ unsigned int sd_debug_zone[4] = {
};
#if defined(MT6575_SD_DEBUG)
+
+static char cmd_buf[256];
+
/* for driver profile */
#define TICKS_ONE_MS (13000)
u32 gpt_enable;