Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Nicolas Palix and committed by
Michal Marek
ec97946e 93f14468

+13 -11
+8 -11
Documentation/coccinelle.txt
··· 6 6 Getting Coccinelle 7 7 ~~~~~~~~~~~~~~~~~~~~ 8 8 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. 11 13 12 - Coccinelle (>=0.2.0) is available through the package manager 14 + Coccinelle is available through the package manager 13 15 of many distributions, e.g. : 14 16 15 - - Debian (>=squeeze) 16 - - Fedora (>=13) 17 - - Ubuntu (>=10.04 Lucid Lynx) 17 + - Debian 18 + - Fedora 19 + - Ubuntu 18 20 - OpenSUSE 19 21 - Arch Linux 20 22 - NetBSD ··· 37 35 as a regular user, and install it with 38 36 39 37 sudo make install 40 - 41 - The semantic patches in the kernel will work best with Coccinelle version 42 - 0.2.4 or later. Using earlier versions may incur some parse errors in the 43 - semantic patch code, but any results that are obtained should still be 44 - correct. 45 38 46 39 Using Coccinelle on the Linux kernel 47 40 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+5
scripts/coccicheck
··· 1 1 #!/bin/bash 2 2 3 + # 4 + # This script requires at least spatch 5 + # version 1.0.0-rc11. 6 + # 7 + 3 8 SPATCH="`which ${SPATCH:=spatch}`" 4 9 5 10 trap kill_running SIGTERM SIGINT