Smatch (Semantic Matching Tool) development
 help / color / mirror / Atom feed
* [PATCH] smatch_allocations: Remove dma_alloc_consistent() from the list
@ 2022-08-15  8:21 Christophe JAILLET
  2022-08-15 11:45 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2022-08-15  8:21 UTC (permalink / raw)
  To: smatch; +Cc: Christophe JAILLET

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 <christophe.jaillet@wanadoo.fr>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] smatch_allocations: Remove dma_alloc_consistent() from the list
  2022-08-15  8:21 [PATCH] smatch_allocations: Remove dma_alloc_consistent() from the list Christophe JAILLET
@ 2022-08-15 11:45 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2022-08-15 11:45 UTC (permalink / raw)
  To: Christophe JAILLET; +Cc: smatch

On Mon, Aug 15, 2022 at 10:21:07AM +0200, Christophe JAILLET wrote:
> 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 <christophe.jaillet@wanadoo.fr>
> ---

All three applied.  Thanks, Christophe!

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-15 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-15  8:21 [PATCH] smatch_allocations: Remove dma_alloc_consistent() from the list Christophe JAILLET
2022-08-15 11:45 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox