From: Sascha Wildner Date: Mon, 2 Jan 2012 02:10:46 +0000 (+0100) Subject: Expand the comments in the coccinelle patches a bit more. X-Git-Tag: v3.0.0~202 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/cfa4e38f9bc84647e2f8813cac445d7c7a34e19e Expand the comments in the coccinelle patches a bit more. --- diff --git a/test/cocci/NELEM.cocci b/test/cocci/NELEM.cocci index 7cf4429e9f..ab911011a1 100644 --- a/test/cocci/NELEM.cocci +++ b/test/cocci/NELEM.cocci @@ -1,3 +1,9 @@ +# +# Find cases where NELEM() can be used. +# +# Applies to userland and kernel code. +# + @param@ @@ diff --git a/test/cocci/kfree.cocci b/test/cocci/kfree.cocci index 99ca1bc52d..0ec0805c45 100644 --- a/test/cocci/kfree.cocci +++ b/test/cocci/kfree.cocci @@ -11,6 +11,8 @@ // URL: http://coccinelle.lip6.fr/ // Comments: // Options: -no_includes -include_headers -D report +// +// Applies to kernel code. virtual org virtual report diff --git a/test/cocci/unlock_return.cocci b/test/cocci/unlock_return.cocci index c1473dec65..677556726e 100644 --- a/test/cocci/unlock_return.cocci +++ b/test/cocci/unlock_return.cocci @@ -1,12 +1,14 @@ // // Look for missing lock releases before returning from a function. // +// Applies to kernel code. +// // NOTES // ----- // * The results of running this patch have to be carefully reviewed. // Some functions legally return with the lock held, even if the // below pattern matches. Some other functions begin with the lock -// held, only to release and then reaquire it again. +// held, only to release and then reacquire it again. // // * Consider using -timeout because it might run a long time // (indefinitely?) on some files.