From: Markus Elfring <Markus.Elfring@web.de>
To: Oleg Petrov <o.petrov@ispras.ru>, cocci@inria.fr
Subject: Re: [cocci] devm as drm-init arg: rule with expression finds less than rule with identifier
Date: Tue, 23 Sep 2025 15:07:41 +0200 [thread overview]
Message-ID: <a42c2271-51b1-4864-be63-d0757dd58b5c@web.de> (raw)
In-Reply-To: <3addf44d4f2524588d664102d5109aad@ispras.ru>
> I wonder, why is that the case? As I understand it, identifier itself
> should match expression.
The software combination “Coccinelle 1.3.0” does also not produce an expected
difference display by the following SmPL script variant according to the
implementation of the function “tilcdc_crtc_create”.
https://elixir.bootlin.com/linux/v6.17-rc7/source/drivers/gpu/drm/tilcdc/tilcdc_crtc.c#L1017-L1076
@badarg2@
position p, q, r;
expression devm, e, local;
@@
*devm =@p devm_kzalloc(...);
...
*local =@r <+... devm ...+>;
...
*drm_crtc_init_with_planes(@q e, <+... local ...+>, ...)
How will the software be improved further?
Regards,
Markus
prev parent reply other threads:[~2025-09-23 13:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-05 14:06 [cocci] devm as drm-init arg: rule with expression finds less than rule with identifier Oleg Petrov
2025-09-23 9:23 ` Oleg Petrov
2025-09-23 13:07 ` Markus Elfring [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=a42c2271-51b1-4864-be63-d0757dd58b5c@web.de \
--to=markus.elfring@web.de \
--cc=cocci@inria.fr \
--cc=o.petrov@ispras.ru \
/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).