22 Jul, 2016
1 commit
-
Make use of the new Requires: tag to be able to specify coccinelle binary
version requirements. The cocci file device_node_continue.cocci requires at
least coccinelle 1.0.4.Signed-off-by: Luis R. Rodriguez
Acked-by: Julia Lawall
Acked-by: Nicolas Palix
Signed-off-by: Michal Marek
18 Feb, 2016
1 commit
-
& is no longer allowed in column 0, since Coccinelle 1.0.4.
Signed-off-by: Julia Lawall
Tested-by: Nishanth Menon
Cc: stable@vger.kernel.org
Signed-off-by: Michal Marek
27 Oct, 2015
1 commit
-
Device node iterators perform an of_node_put on each iteration, so putting
an of_node_put before a continue results in a double put.Signed-off-by: Julia Lawall
Signed-off-by: Michal Marek
04 Jul, 2013
1 commit
-
spatch has changed its option scheme.
E.g., --no_show_diff is now --no-show-diffThis patch updates:
- scripts/coccicheck
- Semantic patches under scripts/coccinelle/Signed-off-by: Nicolas Palix
Signed-off-by: Michal Marek
14 Jul, 2012
1 commit
-
If list_for_each_entry, etc complete a traversal of the list, the iterator
variable ends up pointing to an address at an offset from the list head,
and not a meaningful structure. Thus this value should not be used after
the end of the iterator.Signed-off-by: Julia Lawall
Signed-off-by: Michal Marek
15 Jan, 2012
1 commit
-
This patch ensures that all semantic patches in the scripts/coccinelle
directory provide the report option. Report messages that include line
numbers now have the line number preceded by "line" for easier subsequent
processing.Signed-off-by: Julia Lawall
Signed-off-by: Michal Marek
31 Aug, 2010
3 commits
-
list_for_each_entry uses its first argument to get from one element of
the list to the next, so it is usually not a good idea to reassign it.
The first rule finds such a reassignment and the second rule checks
that there is a path from the reassignment back to the top of the loop.Signed-off-by: Nicolas Palix
Signed-off-by: Julia Lawall
Signed-off-by: Michal Marek -
Many iterators have the property that the first argument is always bound
to a real list element, never NULL. False positives arise for some
iterators that do not have this property, or in cases when the loop
cursor is reassigned. The latter should only happen when the matched
code is on the way to a loop exit (break, goto, or return).Signed-off-by: Nicolas Palix
Signed-off-by: Julia Lawall
Signed-off-by: Michal Marek -
for_each_node iterators only exit normally when the loop cursor is
NULL, so there is no point to call of_node_put on the final value.Signed-off-by: Nicolas Palix
Signed-off-by: Julia Lawall
Signed-off-by: Michal Marek