mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-04 22:03:42 +00:00
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>
This commit is contained in:
parent
aa7a2d971e
commit
3fa87858a7
@ -48,8 +48,6 @@
|
|||||||
#include "mt6575_sd.h"
|
#include "mt6575_sd.h"
|
||||||
#include <linux/seq_file.h>
|
#include <linux/seq_file.h>
|
||||||
|
|
||||||
static char cmd_buf[256];
|
|
||||||
|
|
||||||
/* for debug zone */
|
/* for debug zone */
|
||||||
unsigned int sd_debug_zone[4] = {
|
unsigned int sd_debug_zone[4] = {
|
||||||
0,
|
0,
|
||||||
@ -59,6 +57,9 @@ unsigned int sd_debug_zone[4] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#if defined(MT6575_SD_DEBUG)
|
#if defined(MT6575_SD_DEBUG)
|
||||||
|
|
||||||
|
static char cmd_buf[256];
|
||||||
|
|
||||||
/* for driver profile */
|
/* for driver profile */
|
||||||
#define TICKS_ONE_MS (13000)
|
#define TICKS_ONE_MS (13000)
|
||||||
u32 gpt_enable;
|
u32 gpt_enable;
|
||||||
|
Loading…
Reference in New Issue
Block a user