Skip to content

Commit f95ab20

Browse files
farmergregmichal42
authored andcommitted
coccinelle.txt: update documentation to include M= option
Adding documentation for the new M= option which limits Coccinelle to a specific set of directories. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent d0bc1fb commit f95ab20

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Documentation/coccinelle.txt

+8-2
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,15 @@ or
102102
make coccicheck COCCI=<my_SP.cocci> MODE=report
103103

104104

105-
Using Coccinelle on (modified) files
106-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
105+
Controlling Which Files are Processed by Coccinelle
106+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
107+
By default the entire kernel source tree is checked.
108+
109+
To apply Coccinelle to a specific directory, M= can be used.
110+
For example, to check drivers/net/wireless/ one may write:
107111

112+
make coccicheck M=drivers/net/wireless/
113+
108114
To apply Coccinelle on a file basis, instead of a directory basis, the
109115
following command may be used:
110116

0 commit comments

Comments
 (0)