From: Joe Perches <joe@perches.com>
To: Greg KH <gregkh@linuxfoundation.org>, linux-kernel@vger.kernel.org
Cc: Kees Cook <kees@kernel.org>,
driver-core@lists.linux.dev,
Julia Lawall <Julia.Lawall@inria.fr>,
Nicolas Palix <nicolas.palix@imag.fr>,
cocci@inria.fr
Subject: Re: [PATCH] coccinelle: Add devm_kmalloc_objs conversion script
Date: Wed, 24 Jun 2026 10:02:40 -0700 [thread overview]
Message-ID: <50755b746bb30bea3989db9c1f262d5257e8ee1e.camel@perches.com> (raw)
In-Reply-To: <eed0c57a2c897e34d411229c3de41c5402791894.1781575297.git.joe@perches.com>
On Mon, 2026-06-15 at 19:10 -0700, Joe Perches wrote:
> Like commit bdc5071d7f7b ("coccinelle: Add kmalloc_objs conversion script")
> with commit 1c7bbaeed110 ("coccinelle: kmalloc_obj: Remove default GFP_KERNEL arg")
>
> Finds and converts sized devm_kmalloc-family of allocations into the typed
> devm_kmalloc_obj-family of allocations.
Its been a bit.
Any comments or negatives about using or running this script?
This script would change more than 8000 instances in more than
5000 files in Linus' current master.
$ spatch -D patch --very-quiet --cocci-file ./scripts/coccinelle/api/devm_kmalloc_objs.cocci \
--include-headers-for-types --all-includes --include-headers --keep-comments \
-I ./arch/x86/include -I ./arch/x86/include/generated -I ./include \
-I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi -I ./include/uapi \
-I ./include/generated/uapi --include ./include/linux/compiler-version.h \
--include ./include/linux/kconfig.h .
next prev parent reply other threads:[~2026-06-24 17:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-16 2:10 Joe Perches
2026-06-24 17:02 ` Joe Perches [this message]
2026-06-24 17:25 ` Julia Lawall
2026-06-24 17:52 ` Joe Perches
2026-06-25 5:45 ` [cocci] " Markus Elfring
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=50755b746bb30bea3989db9c1f262d5257e8ee1e.camel@perches.com \
--to=joe@perches.com \
--cc=Julia.Lawall@inria.fr \
--cc=cocci@inria.fr \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas.palix@imag.fr \
/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
all inboxes | Powered by JetHome®