1
0
Fork 0

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>
alistair/sunxi64-5.8
Jason Yan 2020-04-17 15:36:05 +08:00 committed by Christoph Hellwig
parent ae83d0b416
commit 05f099a7d0
1 changed files with 1 additions and 1 deletions

View 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;