From: Markus Elfring <Markus.Elfring@web.de>
To: Julia Lawall <julia.lawall@inria.fr>, cocci@inria.fr
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Subject: Re: [cocci] How to delete selected redundant null pointer checks with SmPL?
Date: Wed, 30 Apr 2025 17:18:03 +0200 [thread overview]
Message-ID: <e769e004-5c91-452a-a791-5cd04c9af8f9@web.de> (raw)
In-Reply-To: <101ac934-7955-4266-4691-d834aec286c@inria.fr>
> I think you want to see if such a thing exists, not ensure that it occurs
> on all paths. You can say:
It seems that the Coocinelle software needs still an extension for “iterators”
according to special source code in the mentioned update candidate “amdgpu_userq_validate_bos”.
https://elixir.bootlin.com/linux/v6.15-rc4/source/include/drm/drm_exec.h#L95-L103
@deletion@
expression e;
identifier member, object, pointer;
iterator name drm_exec_until_all_locked;
@@
pointer = &object.member;
<+... when != pointer = e
(
-pointer &&
...
)
...+>
A patch can be generated as expected then.
Regards,
Markus
prev parent reply other threads:[~2025-04-30 15:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-30 13:09 [cocci] How to delete selected redundant null pointer checks with SmPL? Markus Elfring
2025-04-30 13:51 ` Julia Lawall
[not found] ` <9c26bec1-887e-48dd-a72e-20dd13e41a95@stanley.mountain>
2025-04-30 14:02 ` Julia Lawall
2025-04-30 14:21 ` Markus Elfring
2025-04-30 14:23 ` Julia Lawall
2025-04-30 14:30 ` Markus Elfring
2025-04-30 14:15 ` Markus Elfring
2025-04-30 15:18 ` 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=e769e004-5c91-452a-a791-5cd04c9af8f9@web.de \
--to=markus.elfring@web.de \
--cc=cocci@inria.fr \
--cc=dan.carpenter@linaro.org \
--cc=julia.lawall@inria.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).