Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: dw-edma: Drop unused dchan2dev() and chan2dev()

Static functions dchan2dev() and chan2dev() are not used, W=1 build:

dw-edma-core.c:27:16: error: unused function 'dchan2dev' [-Werror,-Wunused-function]
dw-edma-core.c:33:16: error: unused function 'chan2dev' [-Werror,-Wunused-function]

Fixes: e63d79d1ffcd ("dmaengine: Add Synopsys eDMA IP core driver")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250525-dma-fixes-v1-1-89d06dac9bcb@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Vinod Koul
06b80ad4 6e6d3c6f

-12
-12
drivers/dma/dw-edma/dw-edma-core.c
··· 24 24 #include "../virt-dma.h" 25 25 26 26 static inline 27 - struct device *dchan2dev(struct dma_chan *dchan) 28 - { 29 - return &dchan->dev->device; 30 - } 31 - 32 - static inline 33 - struct device *chan2dev(struct dw_edma_chan *chan) 34 - { 35 - return &chan->vc.chan.dev->device; 36 - } 37 - 38 - static inline 39 27 struct dw_edma_desc *vd2dw_edma_desc(struct virt_dma_desc *vd) 40 28 { 41 29 return container_of(vd, struct dw_edma_desc, vd);