dmaengine: st_fdma: support COMPILE_TEST
Subsystems (2)
cover dmaengine: st_fdma: support COMPILE_TEST
First commit fixes compilation under 64-bit and second actually enables it.
Rosen Penev (2):
dmaengine: st_fdma: change dreg_line to long
dmaengine: st_fdma: add COMPILE_TEST support
drivers/dma/Kconfig | 2 +- drivers/dma/st_fdma.c | 2 +- drivers/dma/st_fdma.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
--
2.51.2
PATCH 1/2 dmaengine: st_fdma: change dreg_line to long
The code is encoding a pointer into an int which works fine with a 32-bit build. Not with a 64-bit one.
--- drivers/dma/st_fdma.c | 2 +- drivers/dma/st_fdma.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/dma/st_fdma.c +1 -1
@@ -68,7 +68,7 @@ static void st_fdma_dreq_put(struct st_fdma_chan *fchan) {struct st_fdma_dev *fdev = fchan->fdev; -dev_dbg (fdev->dev,"put dreq_line:%#x\n" , fchan->dreq_line); +dev_dbg (fdev->dev,"put dreq_line:%#lx\n" , fchan->dreq_line);clear_bit (fchan->dreq_line, &fdev->dreq_mask); }
drivers/dma/st_fdma.h +1 -1
@@ -120,7 +120,7 @@ struct st_fdma_chan {struct dma_slave_config scfg;struct st_fdma_cfg cfg; -int dreq_line; +long dreq_line;struct virt_dma_chan vchan;struct st_fdma_desc *fdesc;
Signature · 1 line
2.51.2
PATCH 2/2 dmaengine: st_fdma: add COMPILE_TEST support
In reply to Rosen PenevAdd COMPILE_TEST as an option to allow test building the driver.
--- drivers/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/Kconfig +1 -1
@@ -590,7 +590,7 @@ config STE_DMA40 config ST_FDMA tristate "ST FDMA dmaengine support" - depends on ARCH_STI + depends on ARCH_STI || COMPILE_TEST depends on REMOTEPROC select ST_SLIM_REMOTEPROC select DMA_ENGINE
Signature · 1 line
2.51.2
Quoted 8 lines · Rosen Penev
First commit fixes compilation under 64-bit and second actually enables it.
Rosen Penev (2):
dmaengine:st_fdma: changedreg_lineto long
dmaengine:st_fdma: addCOMPILE_TESTsupport[...]
Applied, thanks!
[1/2] dmaengine: st_fdma: change dreg_line to long
commit: 19fed6ca15c4c41c28059c25f9cc85c0058cc4fd
[2/2] dmaengine: st_fdma: add COMPILE_TEST support
commit: c3af05623e079c2a9a9363386796fdea20defa18Best regards,
Signature · 1 line
~Vinod