OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6bf882
)
staging: mt7621-mmc: fix compile warnging: cmd_buf
author
NeilBrown
<neil@brown.name>
Sun, 9 Dec 2018 05:20:33 +0000
(16:20 +1100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 12 Dec 2018 10:55:39 +0000
(11:55 +0100)
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>
drivers/staging/mt7621-mmc/dbg.c
patch
|
blob
|
history
diff --git
a/drivers/staging/mt7621-mmc/dbg.c
b/drivers/staging/mt7621-mmc/dbg.c
index
829d3d0
..
eabe059
100644
(file)
--- a/
drivers/staging/mt7621-mmc/dbg.c
+++ b/
drivers/staging/mt7621-mmc/dbg.c
@@
-51,7
+51,6
@@
#include "mt6575_sd.h"
#include <linux/seq_file.h>
-static char cmd_buf[256];
/* for debug zone */
unsigned int sd_debug_zone[4] = {
@@
-62,6
+61,7
@@
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;