From: Dan Carpenter <dan.carpenter@oracle.com>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: smatch@vger.kernel.org
Subject: Re: [PATCH] smatch_allocations: Give a hint about dma_alloc_(attrs|coherent)
Date: Mon, 15 Aug 2022 14:42:49 +0300 [thread overview]
Message-ID: <20220815114249.GN3438@kadam> (raw)
In-Reply-To: <c8d97ff256eee5ad0bf1acbd06d9d94fa16771dc.1660551505.git.christophe.jaillet@wanadoo.fr>
On Mon, Aug 15, 2022 at 10:18:31AM +0200, Christophe JAILLET wrote:
> In recent kernel, dma_alloc_attrs() and dma_alloc_coherent() zero the
> allocated memory.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
> This was not the case in older kernel, so maybe it is better not to state
> that the memory is zeroed.
>
> (I've not seen where/how this .zeroed information was used)
This code is aspirational. I keep on creating lists of allocation
functions but hopefully it can all be pulled into one central location.
regards,
dan carpenter
prev parent reply other threads:[~2022-08-15 11:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-15 8:18 [PATCH] smatch_allocations: Give a hint about dma_alloc_(attrs|coherent) Christophe JAILLET
2022-08-15 11:42 ` Dan Carpenter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220815114249.GN3438@kadam \
--to=dan.carpenter@oracle.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=smatch@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).