projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae83d0b
)
dma-debug: make __dma_entry_alloc_check_leak() static
author
Jason Yan
<yanaijie@huawei.com>
Fri, 17 Apr 2020 07:36:05 +0000
(15:36 +0800)
committer
Christoph 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
patch
|
blob
|
blame
|
history
diff --git
a/kernel/dma/debug.c
b/kernel/dma/debug.c
index 9e1777c81f5599d8748cdc7d573451b4c46faa7e..36c962a86bf25d6f75f868337618df46dc6721a0 100644
(file)
--- 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;