Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
coccinelle.txt: update documentation to include M= option
Browse files Browse the repository at this point in the history
Adding documentation for the new M= option which limits Coccinelle
to a specific set of directories.

Signed-off-by: Greg Dietsche <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
farmergreg authored and michal42 committed Jan 14, 2012
1 parent d0bc1fb commit f95ab20
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Documentation/coccinelle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,15 @@ or
make coccicheck COCCI=<my_SP.cocci> MODE=report


Using Coccinelle on (modified) files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Controlling Which Files are Processed by Coccinelle
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
By default the entire kernel source tree is checked.

To apply Coccinelle to a specific directory, M= can be used.
For example, to check drivers/net/wireless/ one may write:

make coccicheck M=drivers/net/wireless/

To apply Coccinelle on a file basis, instead of a directory basis, the
following command may be used:

Expand Down

0 comments on commit f95ab20

Please sign in to comment.