aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-4.14
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2018-02-22 10:50:29 +0000
committerMathias Kresin <dev@kresin.me>2018-04-04 08:29:17 +0200
commitcd75d6f7b339b613abbf92091c1baf70238c5f7e (patch)
tree7883a23565eabbb5bc77c5bd35e7ad734ac4dcc1 /target/linux/ramips/patches-4.14
parent584b2a26f5a9e1ffcd93ce8c7a96d7bdfc664f25 (diff)
downloadupstream-cd75d6f7b339b613abbf92091c1baf70238c5f7e.tar.gz
upstream-cd75d6f7b339b613abbf92091c1baf70238c5f7e.tar.bz2
upstream-cd75d6f7b339b613abbf92091c1baf70238c5f7e.zip
ramips: mt7620: eMMC: fix compiler warnings in non-debug mode
drivers/mmc/host/mtk-mmc/dbg.c:51:13: warning: 'cmd_buf' defined but not used [-Wunused-variable] static char cmd_buf[256]; ^~~~~~~ In addition, msdc_reg[] is completely unused, even in debug mode. Signed-off-by: André Draszik <git@andred.net>
Diffstat (limited to 'target/linux/ramips/patches-4.14')
-rw-r--r--target/linux/ramips/patches-4.14/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch33
1 files changed, 13 insertions, 20 deletions
diff --git a/target/linux/ramips/patches-4.14/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch b/target/linux/ramips/patches-4.14/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
index 71871b7e51..0940daac48 100644
--- a/target/linux/ramips/patches-4.14/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
+++ b/target/linux/ramips/patches-4.14/0046-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch
@@ -247,7 +247,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+
--- /dev/null
+++ b/drivers/mmc/host/mtk-mmc/dbg.c
-@@ -0,0 +1,347 @@
+@@ -0,0 +1,348 @@
+/* Copyright Statement:
+ *
+ * This software/firmware and related documentation ("MediaTek Software") are
@@ -298,16 +298,6 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+#include "mt6575_sd.h"
+#include <linux/seq_file.h>
+
-+static char cmd_buf[256];
-+
-+/* for debug zone */
-+unsigned int sd_debug_zone[4]={
-+ 0,
-+ 0,
-+ 0,
-+ 0
-+};
-+
+/* mode select */
+u32 dma_size[4]={
+ 512,
@@ -323,6 +313,17 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+};
+
+#if defined (MT6575_SD_DEBUG)
++static char cmd_buf[256];
++
++/* for debug zone */
++static unsigned int sd_debug_zone[4]={
++ 0,
++ 0,
++ 0,
++ 0
++};
++
++
+/* for driver profile */
+#define TICKS_ONE_MS (13000)
+u32 gpt_enable = 0;
@@ -1761,7 +1762,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+
--- /dev/null
+++ b/drivers/mmc/host/mtk-mmc/sd.c
-@@ -0,0 +1,3065 @@
+@@ -0,0 +1,3057 @@
+/* Copyright Statement:
+ *
+ * This software/firmware and related documentation ("MediaTek Software") are
@@ -1914,10 +1915,6 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+#define MAX_SGMT_SZ (MAX_DMA_CNT)
+#define MAX_REQ_SZ (MAX_SGMT_SZ * 8)
+
-+#ifdef MT6575_SD_DEBUG
-+static struct msdc_regs *msdc_reg[HOST_MAX_NUM];
-+#endif
-+
+static int mtk_sw_poll;
+
+static int cd_active_low = 1;
@@ -4359,10 +4356,6 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ u32 base = host->base;
+ struct msdc_hw *hw = host->hw;
+
-+#ifdef MT6575_SD_DEBUG
-+ msdc_reg[host->id] = (struct msdc_regs *)host->base;
-+#endif
-+
+ /* Power on */
+#if 0 /* --- by chhung */
+ msdc_vcore_on(host);