public inbox for cocci@systeme.lip6.fr
 help / color / mirror / Atom feed
* [cocci] Searching for function calls with known parameters (by SmPL)?
@ 2026-03-25  8:48 Markus Elfring
  2026-03-25  8:52 ` Julia Lawall
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Elfring @ 2026-03-25  8:48 UTC (permalink / raw)
  To: cocci

Hello!

A function like pm_request_autosuspend() has got the property that it needs
a single input parameter.
https://elixir.bootlin.com/linux/v7.0-rc5/source/include/linux/pm_runtime.h#L460-L483

Such an implementation detail can be easily determined also by the means of
the semantic patch language.
I imagine that corresponding data processing would become more challenging
if it should be determined that a varying number of parameters would be passed
to other function calls at the beginning.
Can function calls be restricted to known parameters accordingly?

Regards,
Markus

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-26  8:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-25  8:48 [cocci] Searching for function calls with known parameters (by SmPL)? Markus Elfring
2026-03-25  8:52 ` Julia Lawall
2026-03-25  9:15   ` Markus Elfring
2026-03-25 12:24   ` Markus Elfring
2026-03-26  8:30   ` Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox