lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a52a1503-f02c-433e-b459-e608211c8b65@web.de>
Date: Mon, 13 Jan 2025 13:18:19 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>, cocci@...ia.fr
Cc: LKML <linux-kernel@...r.kernel.org>, Julia Lawall
 <Julia.Lawall@...ia.fr>, Nicolas Palix <nicolas.palix@...g.fr>
Subject: Re: [cocci] [PATCH] coccinelle: platform_no_drv_owner: Handle also
 built-in drivers

…
> +++ 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ