Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: mt7621-mmc: fix compile warnging: cmd_buf

cmd_buf is only used when MT6575_SD_DEBUG is defined.
So only declare it in that case.

Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

NeilBrown and committed by
Greg Kroah-Hartman
d17f5ff7 a6bf8820

+1 -1
+1 -1
drivers/staging/mt7621-mmc/dbg.c
··· 51 51 #include "mt6575_sd.h" 52 52 #include <linux/seq_file.h> 53 53 54 - static char cmd_buf[256]; 55 54 56 55 /* for debug zone */ 57 56 unsigned int sd_debug_zone[4] = { ··· 61 62 }; 62 63 63 64 #if defined(MT6575_SD_DEBUG) 65 + static char cmd_buf[256]; 64 66 /* for driver profile */ 65 67 #define TICKS_ONE_MS (13000) 66 68 u32 gpt_enable;