From 144ceb27d737b853113ea4aa7d7c9b3dfe98be0b Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Tue, 18 Aug 2020 19:22:17 +0800 Subject: dmaengine: xilinx: dpdma: Make symbol 'dpdma_debugfs_reqs' static The sparse tool complains as follows: drivers/dma/xilinx/xilinx_dpdma.c:349:37: warning: symbol 'dpdma_debugfs_reqs' was not declared. Should it be static? This variable is not used outside of xilinx_dpdma.c, so this commit marks it static. Fixes: 1d220435cab3 ("dmaengine: xilinx: dpdma: Add debugfs support") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun Reviewed-by: Hyun Kwon Reviewed-by: Laurent Pinchart Link: https://lore.kernel.org/r/20200818112217.43816-1-weiyongjun1@huawei.com Signed-off-by: Vinod Koul --- drivers/dma/xilinx/xilinx_dpdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/dma/xilinx') diff --git a/drivers/dma/xilinx/xilinx_dpdma.c b/drivers/dma/xilinx/xilinx_dpdma.c index 7db70d226e89..81ed1e482878 100644 --- a/drivers/dma/xilinx/xilinx_dpdma.c +++ b/drivers/dma/xilinx/xilinx_dpdma.c @@ -346,7 +346,7 @@ static int xilinx_dpdma_debugfs_desc_done_irq_write(char *args) } /* Match xilinx_dpdma_testcases vs dpdma_debugfs_reqs[] entry */ -struct xilinx_dpdma_debugfs_request dpdma_debugfs_reqs[] = { +static struct xilinx_dpdma_debugfs_request dpdma_debugfs_reqs[] = { { .name = "DESCRIPTOR_DONE_INTR", .tc = DPDMA_TC_INTR_DONE, -- cgit v1.2.3