smatch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: smatch@vger.kernel.org
Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Subject: [PATCH] allocation: Add some kv... variants
Date: Thu, 25 Aug 2022 19:45:10 +0200	[thread overview]
Message-ID: <c7f263b20712fb64fbabf91ebb531b19160b872e.1661449503.git.christophe.jaillet@wanadoo.fr> (raw)

Add kvmalloc_node(), kvzalloc_node(), kvrealloc()

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 smatch_allocations.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/smatch_allocations.c b/smatch_allocations.c
index 08957f3e0902..68ca6595a8a8 100644
--- a/smatch_allocations.c
+++ b/smatch_allocations.c
@@ -68,8 +68,11 @@ static struct alloc_fn_info kernel_alloc_funcs[] = {
 
 	{"kvmalloc", "$0"},
 	{"kvmalloc_array", "$0 * $1"},
+	{"kvmalloc_node", "$0"},
 	{"kvzalloc", "$0", .zeroed=true},
 	{"kvcalloc", "$0 * $1", .zeroed=true},
+	{"kvzalloc_node", "$0", .zeroed=true},
+	{"kvrealloc", "$2"},
 
 	{"kmemdup", "$1"},
 	{"devm_kmemdup", "$2"},
-- 
2.34.1

                 reply	other threads:[~2022-08-25 17:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=c7f263b20712fb64fbabf91ebb531b19160b872e.1661449503.git.christophe.jaillet@wanadoo.fr \
    --to=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).