From: Julia Lawall <julia.lawall@inria.fr>
To: Joe Perches <joe@perches.com>
Cc: Greg KH <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, Kees Cook <kees@kernel.org>,
driver-core@lists.linux.dev,
Nicolas Palix <nicolas.palix@imag.fr>,
cocci@inria.fr
Subject: Re: [PATCH] coccinelle: Add devm_kmalloc_objs conversion script
Date: Wed, 24 Jun 2026 19:25:51 +0200 (CEST) [thread overview]
Message-ID: <dc6cfcc-4ec4-8b87-19c3-974818448b8c@inria.fr> (raw)
In-Reply-To: <50755b746bb30bea3989db9c1f262d5257e8ee1e.camel@perches.com>
On Wed, 24 Jun 2026, Joe Perches wrote:
> 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.
I was going to try it this evening. Are you concerned that it is too
much?
julia
>
> $ 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:27 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
2026-06-24 17:25 ` Julia Lawall [this message]
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=dc6cfcc-4ec4-8b87-19c3-974818448b8c@inria.fr \
--to=julia.lawall@inria.fr \
--cc=cocci@inria.fr \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--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®