dma-debug: make __dma_entry_alloc_check_leak() static
PATCH 1/1 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 <[email protected]>
Signed-off-by Jason Yan <[email protected]>
--- kernel/dma/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/dma/debug.c +1 -1
@@ -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;
Signature · 1 line
2.21.1
Quoted 7 lines · Jason Yan
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 <[email protected]>Signed-off-by Jason Yan <[email protected]>
Looks good, I'll queue this up for 5.8.