* + coccinelle-platform_no_drv_owner-handle-also-built-in-drivers.patch added to mm-nonmm-unstable branch
@ 2025-09-11 20:50 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-09-11 20:50 UTC (permalink / raw)
To: mm-commits, nicolas.palix, nathan, julia.lawall,
krzysztof.kozlowski, akpm
The patch titled
Subject: coccinelle: platform_no_drv_owner: handle also built-in drivers
has been added to the -mm mm-nonmm-unstable branch. Its filename is
coccinelle-platform_no_drv_owner-handle-also-built-in-drivers.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/coccinelle-platform_no_drv_owner-handle-also-built-in-drivers.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Subject: coccinelle: platform_no_drv_owner: handle also built-in drivers
Date: Thu, 11 Sep 2025 20:47:27 +0200
builtin_platform_driver() and others also use macro
platform_driver_register() which sets the .owner=THIS_MODULE, so extend
the cocci script to detect these as well.
Link: https://lkml.kernel.org/r/20250911184726.23154-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Julia Lawall <julia.lawall@inria.fr>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nicolas Palix <nicolas.palix@imag.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
scripts/coccinelle/api/platform_no_drv_owner.cocci | 9 +++++++++
1 file changed, 9 insertions(+)
--- a/scripts/coccinelle/api/platform_no_drv_owner.cocci~coccinelle-platform_no_drv_owner-handle-also-built-in-drivers
+++ a/scripts/coccinelle/api/platform_no_drv_owner.cocci
@@ -10,12 +10,21 @@ virtual org
virtual report
@match1@
+declarer name builtin_i2c_driver;
+declarer name builtin_platform_driver;
+declarer name builtin_platform_driver_probe;
declarer name module_i2c_driver;
declarer name module_platform_driver;
declarer name module_platform_driver_probe;
identifier __driver;
@@
(
+ builtin_i2c_driver(__driver);
+|
+ builtin_platform_driver(__driver);
+|
+ builtin_platform_driver_probe(__driver, ...);
+|
module_i2c_driver(__driver);
|
module_platform_driver(__driver);
_
Patches currently in -mm which might be from krzysztof.kozlowski@linaro.org are
coccinelle-of_table-handle-spi-device-id-tables.patch
coccinelle-platform_no_drv_owner-handle-also-built-in-drivers.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-11 20:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-11 20:50 + coccinelle-platform_no_drv_owner-handle-also-built-in-drivers.patch added to mm-nonmm-unstable branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.