diff options
Diffstat (limited to 'Documentation/coccinelle.txt')
-rw-r--r-- | Documentation/coccinelle.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Documentation/coccinelle.txt b/Documentation/coccinelle.txt index dffa2d620d6d..18de78599dd4 100644 --- a/Documentation/coccinelle.txt +++ b/Documentation/coccinelle.txt | |||
@@ -114,7 +114,7 @@ To apply Coccinelle to a specific directory, M= can be used. | |||
114 | For example, to check drivers/net/wireless/ one may write: | 114 | For example, to check drivers/net/wireless/ one may write: |
115 | 115 | ||
116 | make coccicheck M=drivers/net/wireless/ | 116 | make coccicheck M=drivers/net/wireless/ |
117 | 117 | ||
118 | To apply Coccinelle on a file basis, instead of a directory basis, the | 118 | To apply Coccinelle on a file basis, instead of a directory basis, the |
119 | following command may be used: | 119 | following command may be used: |
120 | 120 | ||
@@ -134,6 +134,15 @@ MODE variable explained above. | |||
134 | In this mode, there is no information about semantic patches | 134 | In this mode, there is no information about semantic patches |
135 | displayed, and no commit message proposed. | 135 | displayed, and no commit message proposed. |
136 | 136 | ||
137 | Additional flags | ||
138 | ~~~~~~~~~~~~~~~~~~ | ||
139 | |||
140 | Additional flags can be passed to spatch through the SPFLAGS | ||
141 | variable. | ||
142 | |||
143 | make SPFLAGS=--use_glimpse coccicheck | ||
144 | |||
145 | See spatch --help to learn more about spatch options. | ||
137 | 146 | ||
138 | Proposing new semantic patches | 147 | Proposing new semantic patches |
139 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 148 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |