aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/dma/rcar-audmapp.txt
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-04-10 18:27:58 -0400
committerVinod Koul <vinod.koul@intel.com>2015-04-17 14:15:06 -0400
commit7d3beab16dd9eee86bb1a4dd05b51159fc7772f0 (patch)
tree57e2d64d1daa2aa3accef18859fffc8e5e7afbbe /Documentation/devicetree/bindings/dma/rcar-audmapp.txt
parent11ebe4c067c7f95adff73594cb5c23f7a5c6d69e (diff)
dmaengine: shdmac: avoid unused variable warnings
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: 52d6a5ee101bf ("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>
Diffstat (limited to 'Documentation/devicetree/bindings/dma/rcar-audmapp.txt')
0 files changed, 0 insertions, 0 deletions