Lines Matching refs:patch
78 Four basic modes are defined: ``patch``, ``report``, ``context``, and
82 - ``patch`` proposes a fix, when possible.
106 To make a report for every semantic patch, run the following command::
112 make coccicheck MODE=patch
115 The coccicheck target applies every semantic patch available in the
118 For each semantic patch, a commit message is proposed. It gives a
119 description of the problem being checked by the semantic patch, and
151 Using Coccinelle with a single semantic patch
155 semantic patch. In that case, the variable must be initialized with
156 the name of the semantic patch to apply.
160 make coccicheck COCCI=<my_SP.cocci> MODE=patch
189 This runs every semantic patch in scripts/coccinelle by default. The
191 semantic patch as shown in the previous section.
316 SmPL patch specific options
320 to Coccinelle. SmPL patch specific options can be provided by
321 providing them at the top of the SmPL patch, for instance::
325 SmPL patch Coccinelle requirements
329 may require newer versions of Coccinelle. If an SmPL patch requires
360 @r depends on !context && !patch && (org || report)@
384 Detailed description of the ``patch`` mode
387 When the ``patch`` mode is available, it proposes a fix for each problem
395 make coccicheck MODE=patch COCCI=scripts/coccinelle/api/err_cast.cocci
400 @ depends on !context && patch && !org && !report @
408 This SmPL excerpt generates patch hunks on the standard output, as
430 **NOTE**: The diff-like output generated is NOT an applicable patch. The
446 @ depends on context && !patch && !org && !report@
483 @r depends on !context && !patch && (org || report)@