Re: [PATCH] coccinelle: api: add a checker for device nodes in devm_ memory
From: Markus Elfring
Date: Sat Nov 07 2026 - 11:06:14 EST
…
> +@allocdecl depends on org || report exists@
…
How do you think about to avoid duplicate code by using another SmPL disjunction?
(T *x = fn@p(...);
|x = fn@p(...);
)
See also:
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/ea58efe355dea2184217954248a01f5dc5995d24/standard.iso#L465-489
https://github.com/coccinelle/coccinelle/blob/11b93adb6516a358a6687051e5762136666626e0/standard.iso#L465-L489
Regards,
Markus