summaryrefslogtreecommitdiffstats
path: root/kernel/dma/debug.c
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-17 15:36:05 +0800
committerChristoph Hellwig <hch@lst.de>2020-04-20 12:05:18 +0200
commit05f099a7d0a73114c6eb3e6a359ea97563b47031 (patch)
tree9018957ba6465c4ee1fd326ae58cafe2d17c4752 /kernel/dma/debug.c
parentae83d0b416db002fe95601e7f97f64b59514d936 (diff)
downloadlinux-05f099a7d0a73114c6eb3e6a359ea97563b47031.tar.bz2
dma-debug: make __dma_entry_alloc_check_leak() static
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>
Diffstat (limited to 'kernel/dma/debug.c')
-rw-r--r--kernel/dma/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c
index 9e1777c81f55..36c962a86bf2 100644
--- a/kernel/dma/debug.c
+++ b/kernel/dma/debug.c
@@ -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;