mmc: tmio: Fix build errors
Subsystems (2)
PATCH 1/1 mmc: tmio: Fix build errors
Conditional code in tmio_mmc.h selects dummy tmio_mmc_start_dma(), tmio_mmc_request_dma() and tmio_mmc_release_dma() inline functions instead of the required declarations. This breaks the build of tmio_mmc_dma.c
---
drivers/mmc/host/tmio_mmc.h +0 -18
@@ -98,26 +98,8 @@ static inline void tmio_mmc_kunmap_atomi local_irq_restore(*flags); } -#if defined(CONFIG_MMC_SDHI ) || defined(CONFIG_MMC_SDHI_MODULE )void tmio_mmc_start_dma (struct tmio_mmc_host *host,struct mmc_data *data);void tmio_mmc_request_dma (struct tmio_mmc_host *host,struct tmio_mmc_data *pdata);void tmio_mmc_release_dma (struct tmio_mmc_host *host); -#else -static inline void tmio_mmc_start_dma (struct tmio_mmc_host *host, -struct mmc_data *data) -{ -} - -static inline void tmio_mmc_request_dma (struct tmio_mmc_host *host, -struct tmio_mmc_data *pdata) -{ - host->chan_tx =NULL ; - host->chan_rx =NULL ; -} - -static inline void tmio_mmc_release_dma (struct tmio_mmc_host *host) -{ -} -#endif #endif
Quoted 6 lines · Paul Parsons
Conditional code in
tmio_mmc.hselects dummytmio_mmc_start_dma(),tmio_mmc_request_dma()andtmio_mmc_release_dma()inline functions instead of the required declarations. This breaks the build oftmio_mmc_dma.cSigned-off-by Paul Parsons <[email protected]>
NAK. Are you trying to use DMA with TMIO on your platform? Then this is a wrong fix. Otherwise tmio_mmc_dma.c shouldn't be compiled on your arch at all.
Thanks
Guennadi
Quoted 33 lines
---
diff -uprNclean-2.6.39-rc7/drivers/mmc/host/tmio_mmc.hlinux-2.6.39-rc7/drivers/mmc/host/tmio_mmc.hdrivers/mmc/host/tmio_mmc.h +0
-19@@ -98,26 +98,8 @@ static inline void tmio_mmc_kunmap_atomi local_irq_restore(*flags); } -#if defined(CONFIG_MMC_SDHI ) || defined(CONFIG_MMC_SDHI_MODULE )void tmio_mmc_start_dma (struct tmio_mmc_host *host,struct mmc_data *data);void tmio_mmc_request_dma (struct tmio_mmc_host *host,struct tmio_mmc_data *pdata);void tmio_mmc_release_dma (struct tmio_mmc_host *host); -#else -static inline void tmio_mmc_start_dma (struct tmio_mmc_host *host, -struct mmc_data *data) -{ -} - -static inline void tmio_mmc_request_dma (struct tmio_mmc_host *host, -struct tmio_mmc_data *pdata) -{ - host->chan_tx =NULL ; - host->chan_rx =NULL ; -} - -static inline void tmio_mmc_release_dma (struct tmio_mmc_host *host) -{ -} -#endif #endif --
Quoted 4 lines
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
Quoted 1 line
NAK. Are you trying to use DMA with TMIO on your platform?
Not that I am aware of.
Quoted 4 lines
Then this is a
wrong fix. Otherwisetmio_mmc_dma.cshouldn't be compiled on your arch at
all.
Then this must be is a config or Makefile bug, because the build is certainly trying to compile tmio_mmc_dma.c
Looking at drivers/mmc/host/Makefile:
ifneq ($(CONFIG_MMC_SDHI),n)
tmio_mmc_core-y += tmio_mmc_dma.o
endif
My config doesn't define CONFIG_MMC_SDHI at all, thus the Makefile adds tmio_mmc_dma.o to the build?
Regards,
Paul
Quoted 12 lines · Paul Parsons
Quoted 1 line
NAK. Are you trying to use DMA with TMIO on your platform?
Not that I am aware of.
Quoted 4 lines
Then this is a
wrong fix. Otherwisetmio_mmc_dma.cshouldn't be compiled on your arch at
all.Then this must be is a config or
Makefilebug, because the build is certainly trying to compiletmio_mmc_dma.c
Quoted 7 lines
Looking at
drivers/mmc/host/Makefile:ifneq ($(CONFIG_MMC_SDHI),n)
tmio_mmc_core-y += tmio_mmc_dma.o
endifMy config doesn't define
CONFIG_MMC_SDHIat all, thus theMakefileadds tmio_mmc_dma.o to the build?
hm, interesting... Then yes, then this is a bug and should be fixed:( Although I'm sure I tested a non-SDHI build... confused.
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/