From: Nicolas Palix on
New targets are added (coccicheck-<mode>) to call the spatch front-end
in the 'scripts' directory with the <mode> argument.

Four modes are defined: report, patch, context, and org.

'report' mode generates a list in the following format:
file:line:column-column: message

'patch' mode proposes a generic fix, when possible.

'context' mode highlights lines of interest and their context
in a diff-like style.

'org' mode generates a report in the Org mode format of Emacs.

Three semantic patches, with a low rate of false positives, are also added.
Other semantic patches will be propose later.

Nicolas Palix (4):
Add targets to use the Coccinelle checker
Add scripts/smpl/drop_kmalloc_cast.cocci
Add scripts/smpl/kzalloc-simple.cocci
Add scripts/smpl/resource_size.cocci

Makefile | 9 +++
scripts/smpl/drop_kmalloc_cast.cocci | 74 +++++++++++++++++++++++++
scripts/smpl/kzalloc-simple.cocci | 88 +++++++++++++++++++++++++++++
scripts/smpl/resource_size.cocci | 101 ++++++++++++++++++++++++++++++++++
scripts/ | 14 +++++
6 files changed, 296 insertions(+), 0 deletions(-)
create mode 100644 scripts/smpl/drop_kmalloc_cast.cocci
create mode 100644 scripts/smpl/kzalloc-simple.cocci
create mode 100644 scripts/smpl/resource_size.cocci
create mode 100755 scripts/

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at