Skip to content

Commit ec97946

Browse files
npalixmichal42
authored andcommitted
Coccinelle: Update information about the minimal version required
The naming convention of options has changed one year ago. The options have been recently updated in the cocci file and in scripts/coccicheck. This patch also adds this information in the documentation. Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 93f1446 commit ec97946

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

‎Documentation/coccinelle.txt‎

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ Copyright 2010 Gilles Muller <Gilles.Muller@lip6.fr>
66
Getting Coccinelle
77
~~~~~~~~~~~~~~~~~~~~
88

9-
The semantic patches included in the kernel use the 'virtual rule'
10-
feature which was introduced in Coccinelle version 0.1.11.
9+
The semantic patches included in the kernel use features and options
10+
which are provided by Coccinelle version 1.0.0-rc11 and above.
11+
Using earlier versions will fail as the option names used by
12+
the Coccinelle files and coccicheck have been updated.
1113

12-
Coccinelle (>=0.2.0) is available through the package manager
14+
Coccinelle is available through the package manager
1315
of many distributions, e.g. :
1416

15-
- Debian (>=squeeze)
16-
- Fedora (>=13)
17-
- Ubuntu (>=10.04 Lucid Lynx)
17+
- Debian
18+
- Fedora
19+
- Ubuntu
1820
- OpenSUSE
1921
- Arch Linux
2022
- NetBSD
@@ -36,11 +38,6 @@ as a regular user, and install it with
3638

3739
sudo make install
3840

39-
The semantic patches in the kernel will work best with Coccinelle version
40-
0.2.4 or later. Using earlier versions may incur some parse errors in the
41-
semantic patch code, but any results that are obtained should still be
42-
correct.
43-
4441
Using Coccinelle on the Linux kernel
4542
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4643

‎scripts/coccicheck‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
#
4+
# This script requires at least spatch
5+
# version 1.0.0-rc11.
6+
#
7+
38
SPATCH="`which ${SPATCH:=spatch}`"
49

510
trap kill_running SIGTERM SIGINT

0 commit comments

Comments
 (0)