Skip to contentSkip to conversation

drivers: mmc: bfin_sdh: fix build error

PATCH In review Bob Liu 2 participants 4 messages Jul 30, 2012 – Aug 7, 2012 MMC, SD and SDIO

lore
Share & tools
lore

Bob Liu

author
#0 lore raw

PATCH 1/1 drivers: mmc: bfin_sdh: fix build error

From: Sonic Zhang <[email protected]>

Descriptor array structure has been moved into blackfin dma.h head file. This patch fix below error:

drivers/mmc/host/bfin_sdh.c:52:8: error: redefinition of 'struct dma_desc_array'
make[4]: *** [drivers/mmc/host/bfin_sdh.o] Error 1

---
 drivers/mmc/host/bfin_sdh.c |   13 -------------
 1 file changed, 13 deletions(-)
drivers/mmc/host/bfin_sdh.c +0 -7
index 0366617..a17dd73 100644
@@ -49,13 +49,6 @@
 #define bfin_write_SDH_CFG		bfin_write_RSI_CFG
 #endif
 
-struct dma_desc_array {
-	unsigned long	start_addr;
-	unsigned short	cfg;
-	unsigned short	x_count;
-	short		x_modify;
-} __packed;
-
 struct sdh_host {
 	struct mmc_host		*mmc;
 	spinlock_t		lock;
Signature · 1 line
1.7.9.5
author
#1 lore raw

Hi Chris,

Would you please take a look at this patch?
Since without this patch, regression test for blackfin will fail:
http://kisskb.ellerman.id.au/kisskb/matrix/

Thank you!

Quoted 36 lines · Bob Liu

From: Sonic Zhang <[email protected]>

Descriptor array structure has been moved into blackfin dma.h head file. This patch fix below error:

drivers/mmc/host/bfin_sdh.c:52:8: error: redefinition of 'struct dma_desc_array'
make[4]: *** [drivers/mmc/host/bfin_sdh.o] Error 1

---
 drivers/mmc/host/bfin_sdh.c |   13 -------------
 1 file changed, 13 deletions(-)
drivers/mmc/host/bfin_sdh.c +0 -8
index 0366617..a17dd73 100644
@@ -49,13 +49,6 @@
 #define bfin_write_SDH_CFG             bfin_write_RSI_CFG
 #endif
 
-struct dma_desc_array {
-       unsigned long   start_addr;
-       unsigned short  cfg;
-       unsigned short  x_count;
-       short           x_modify;
-} __packed;
-
 struct sdh_host {
        struct mmc_host         *mmc;
        spinlock_t              lock;
--

1.7.9.5

Signature · 2 lines
Regards,
--Bob