From: Jason Yan Date: Fri, 17 Apr 2020 07:36:05 +0000 (+0800) Subject: dma-debug: make __dma_entry_alloc_check_leak() static X-Git-Tag: v5.8-rc1~113^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05f099a7d0a73114c6eb3e6a359ea97563b47031;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Jason Yan Signed-off-by: Christoph Hellwig --- diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c index 9e1777c81f559..36c962a86bf25 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;