linux/drivers/dma/sh
Arnd Bergmann 0fee5a3955 dmaengine: shdmac: avoid unused variable warnings
[ Upstream commit 7d3beab16d ]

This driver uses '#ifdef CONFIG_ARCH_SHMOBILE' and '#ifdef CONFIG_ARM'
interchangeably in its sh_dmae_probe function, which causes a build
warning when building for ARM without also enabling shmobile:

dma/sh/shdmac.c: In function sh_dmae_probe:
dma/sh/shdmac.c:696:6: warning: unused variable errirq [-Wunused-variable]
dma/sh/shdmac.c:695:16: warning: unused variable irqflags [-Wunused-variable]
dma/sh/shdmac.c: At top level:
dma/sh/shdmac.c:447:20: warning: sh_dmae_err defined but not used [-Wunused-function]

This changes all the #ifdef to test for CONFIG_ARCH_SHMOBILE to
avoid that warning. An earlier patch from Laurent had fixed the warning
for non-ARM case, but it still remained present in ARM randconfig builds.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 52d6a5ee10 ("DMA: shdma: Fix warnings due to declared but unused symbols")
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2015-06-28 13:39:26 -04:00
..
Kconfig dmaengine: sh: Rework Kconfig and Makefile 2014-07-31 17:15:45 +05:30
Makefile dmaengine: sh: Rework Kconfig and Makefile 2014-07-31 17:15:45 +05:30
rcar-audmapp.c dma: rcar-audmapp: Fix for no corresponding slave ID 2014-08-28 12:42:10 +05:30
rcar-hpbdma.c dmaengine: rcar-hpbdma: Include linux/err.h 2014-06-01 22:56:30 +05:30
shdma-arm.h dmaengine: shdma: Use defines instead of hardcoded numbers 2014-07-15 18:02:29 +09:00
shdma-base.c dmaengine: Remove the context argument to the prep_dma_cyclic operation 2014-08-04 13:41:50 +05:30
shdma-of.c DMA: shdma: Fix warnings due to improper casts and printk formats 2014-03-06 11:35:23 +05:30
shdma-r8a73a4.c DMA: shdma: add r8a73a4 DMAC data to the device ID table 2013-08-27 14:26:21 +05:30
shdma.h dmaengine: sh: Rework Kconfig and Makefile 2014-07-31 17:15:45 +05:30
shdmac.c dmaengine: shdmac: avoid unused variable warnings 2015-06-28 13:39:26 -04:00
sudmac.c dmaengine: sudmac: Include linux/err.h 2014-06-01 22:56:30 +05:30