[PATCH] smatch_allocations: Remove dma_alloc_consistent() from the list

Christophe JAILLET <[email protected]> Mon, 15 Aug 2022 10:21:07 +0200
Newsgroups org.kernel.vger.smatch
Message-ID <bdce509ece7a3688aff3dbb87e06d7e64b17bc9a.1660551659.git.christophe.jaillet@wanadoo.fr>
dma_alloc_consistent() is only defined/used in
drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c.

There is no point in listing it in the generic list of memory allocator.

Signed-off-by: Christophe JAILLET <[email protected]>
---
 smatch_allocations.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/smatch_allocations.c b/smatch_allocations.c
index 111c4e9bd82d..a4b8f419b030 100644
--- a/smatch_allocations.c
+++ b/smatch_allocations.c
@@ -50,7 +50,6 @@ static struct alloc_fn_info kernel_alloc_funcs[] = {
 
 	{"dma_alloc_attrs", "$1", .zeroed=true},
 	{"dma_alloc_coherent", "$1", .zeroed=true},
-	{"dma_alloc_consistent", "$1"},
 	{"dma_alloc_contiguous", "$1"},
 
 	{"krealloc", "$1"},
-- 
2.34.1