From: Markus Elfring <Markus.Elfring@web.de>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, cocci@inria.fr
Cc: LKML <linux-kernel@vger.kernel.org>,
Julia Lawall <Julia.Lawall@inria.fr>,
Nicolas Palix <nicolas.palix@imag.fr>
Subject: Re: [cocci] [PATCH] coccinelle: platform_no_drv_owner: Handle also built-in drivers
Date: Mon, 13 Jan 2025 13:18:19 +0100 [thread overview]
Message-ID: <a52a1503-f02c-433e-b459-e608211c8b65@web.de> (raw)
In-Reply-To: <20250104141414.114971-1-krzysztof.kozlowski@linaro.org>
…
> +++ b/scripts/coccinelle/api/platform_no_drv_owner.cocci
> @@ -10,12 +10,21 @@ virtual org
> virtual report
>
> @match1@
…
> @@
> (
> + builtin_i2c_driver(__driver);
> +|
> + builtin_platform_driver(__driver);
> +|
> + builtin_platform_driver_probe(__driver, ...);
> +|
> module_i2c_driver(__driver);
> |
> module_platform_driver(__driver);
How do you think about to avoid a bit for duplicate SmPL code
(by using nested disjunctions)?
Development idea:
(
(builtin_platform_driver
|builtin_i2c_driver
|module_i2c_driver
|module_platform_driver
)(__driver);
|builtin_platform_driver_probe(__driver, ...);)
Regards,
Markus
prev parent reply other threads:[~2025-01-13 12:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-04 14:14 Krzysztof Kozlowski
2025-01-13 12: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=a52a1503-f02c-433e-b459-e608211c8b65@web.de \
--to=markus.elfring@web.de \
--cc=Julia.Lawall@inria.fr \
--cc=cocci@inria.fr \
--cc=krzysztof.kozlowski@linaro.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®