]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
dmaengine: xilinx: dpdma: Make symbol 'dpdma_debugfs_reqs' static
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 18 Aug 2020 11:22:17 +0000 (19:22 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 19 Aug 2020 04:24:38 +0000 (09:54 +0530)
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 <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20200818112217.43816-1-weiyongjun1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dpdma.c

index 7db70d226e8906c5aae904898e6ae3dc9b36c54b..81ed1e4828780a5ba1ec548299bf12e2cdcd948e 100644 (file)
@@ -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,