dma-debug: make __dma_entry_alloc_check_leak() static
authorJason Yan <yanaijie@huawei.com>
Fri, 17 Apr 2020 07:36:05 +0000 (15:36 +0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 20 Apr 2020 10:05:18 +0000 (12:05 +0200)
Fix the following sparse warning:

kernel/dma/debug.c:659:6: warning: symbol '__dma_entry_alloc_check_leak'
was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/debug.c

index 9e1777c81f5599d8748cdc7d573451b4c46faa7e..36c962a86bf25d6f75f868337618df46dc6721a0 100644 (file)
@@ -656,7 +656,7 @@ static struct dma_debug_entry *__dma_entry_alloc(void)
        return entry;
 }
 
-void __dma_entry_alloc_check_leak(void)
+static void __dma_entry_alloc_check_leak(void)
 {
        u32 tmp = nr_total_entries % nr_prealloc_entries;