From 3fa87858a790008b145b6ef41e0476a36c256143 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Sat, 6 May 2023 23:16:13 +0200 Subject: [PATCH] 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 --- target/linux/ramips/files/drivers/mmc/host/mtk-mmc/dbg.c | 5 +++-- 1 file 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 -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; -- 2.30.2