hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/scripts/coccinelle/free/iounmap.cocci
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /// Find missing iounmaps.
23 ///
34 //# This only signals a missing iounmap when there is an iounmap later
....@@ -5,8 +6,8 @@
56 //# False positives can be due to loops.
67 //
78 // Confidence: Moderate
8
-// Copyright: (C) 2012 Julia Lawall, INRIA/LIP6. GPLv2.
9
-// Copyright: (C) 2012 Gilles Muller, INRIA/LiP6. GPLv2.
9
+// Copyright: (C) 2012 Julia Lawall, INRIA/LIP6.
10
+// Copyright: (C) 2012 Gilles Muller, INRIA/LiP6.
1011 // URL: http://coccinelle.lip6.fr/
1112 // Comments:
1213 // Options:
....@@ -22,7 +23,7 @@
2223 position p1,p2,p3;
2324 @@
2425
25
-e = \(ioremap@p1\|ioremap_nocache@p1\)(...)
26
+e = \(ioremap@p1\)(...)
2627 ... when != iounmap(e)
2728 if (<+...e...+>) S
2829 ... when any