From cfa4e38f9bc84647e2f8813cac445d7c7a34e19e Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Mon, 2 Jan 2012 03:10:46 +0100 Subject: [PATCH] Expand the comments in the coccinelle patches a bit more. --- test/cocci/NELEM.cocci | 6 ++++++ test/cocci/kfree.cocci | 2 ++ test/cocci/unlock_return.cocci | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) 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. -- 2.41.0