On Mon, Oct 17, 2016 at 11:52:24AM -0500, Andrew F. Davis wrote:
> Add a script to check for unneeded conversions to bool.
>
> Signed-off-by: Andrew F. Davis
> Acked-by: Julia Lawall
Applied to kbuild.git#misc, thanks.
Michal
On Sat, Oct 08, 2016 at 05:51:45PM +0200, Nicholas Mc Guire wrote:
> Report code constructs where the if and else branch are functionally
> identical. In cases where this is intended it really should be
> documented - most reported cases probably are bugs.
>
> Signed-off-by: Nicholas Mc Guire
Dne 22.9.2016 v 10:28 Julia Lawall napsal(a):
> pm_runtime.cocci starts with one rule that searches for a variety of
> functions calls, followed by various rules that report errors. Previously,
> the only connection between the first rule and the rest was to check that
> the first rule had
Dne 21.9.2016 v 17:48 Julia Lawall napsal(a):
> Memdup_user encapsulates a memory allocation with the flag GFP_KERNEL, so
> only allow this flag in the original code.
>
> Signed-off-by: Julia Lawall
Applied to kbuild.git#misc.
Thanks,
Michal
Dne 23.7.2016 v 23:00 Amitoj Kaur Chawla napsal(a):
> This script finds instances of allocate and memcpy which can be
> replaced with a direct call to zalloc equivalent of a function.
>
> Signed-off-by: Amitoj Kaur Chawla
> ---
> scripts/coccinelle/api/zalloc.cocci | 556
On 2016-07-13 23:45, Luis R. Rodriguez wrote:
> On Wed, Jun 29, 2016 at 03:14:50PM -0700, Luis R. Rodriguez wrote:
>> There were quite a bit of comments from the v3 series [0], since there
>> was quite a bit of review needed for some other changes I've had discussions
>> with Nicolas and Julia
Dne 20.6.2016 v 22:21 Julia Lawall napsal(a):
>
>
> On Mon, 20 Jun 2016, Michal Marek wrote:
>
>> On 2016-05-23 17:18, Julia Lawall wrote:
>>>
>>>
>>> On Mon, 23 May 2016, Yann Droneaud wrote:
>>>
>>>> Since commit 3ef0e5ba4
On 2016-05-24 10:39, Julia Lawall wrote:
> Acked-by: Julia Lawall
>
> On Tue, 24 May 2016, Vaishali Thakkar wrote:
>
>> Add new rules to detect the cases where sizeof is used in
>> function calls as a argument.
>>
>> Also, for the patch mode third rule should behave same
Dne 15.6.2016 v 18:02 Luis R. Rodriguez napsal(a):
> On Wed, Jun 15, 2016 at 09:50:11AM +0200, Michal Marek wrote:
>> On 2016-06-15 00:10, Luis R. Rodriguez wrote:
>>> +weight = (int(rel_specs['VERSION'])<< 32) + \
>>> + (i
On 2016-06-15 00:10, Luis R. Rodriguez wrote:
> Signed-off-by: Luis R. Rodriguez
> ---
> scripts/coccicheck | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/scripts/coccicheck b/scripts/coccicheck
> index ba7301ab0a3d..a4d91d649ad9 100755
> --- a/scripts/coccicheck
On 2016-06-15 00:10, Luis R. Rodriguez wrote:
> +weight = (int(rel_specs['VERSION'])<< 32) + \
> + (int(rel_specs['PATCHLEVEL']) << 16) + \
> + (sublevel << 8 ) + \
> + (extra * 60) + (relmod * 2)
This is going
On Sat, Mar 19, 2016 at 06:43:08PM +0100, Julia Lawall wrote:
> On Sat, 19 Mar 2016, Wolfram Sang wrote:
>
> > The header mentions this check depends on personal taste. I agree.
> > Running coccicheck on patches before I apply them, this SmPL produced
> > enough false positives for me that I'd
Dne 20.3.2016 v 13:25 Julia Lawall napsal(a):
>
>
> On Sun, 20 Mar 2016, Vaishali Thakkar wrote:
>
>> Add space in front of the offending parentheses to silent the
>> parse error for older Coccinelle versions. This makes the rule
>> usable with all Coccinelle versions.
>>
>> Reported-by:
On 2016-02-18 00:47, Nishanth Menon wrote:
> On 02/17/2016 05:16 PM, Julia Lawall wrote:
>> & is no longer allowed in column 0, since Coccinelle 1.0.4.
>>
>> Signed-off-by: Julia Lawall
[...]
> Verified with:
> spatch --version
> spatch byte-code version
Dne 30.8.2015 v 22:18 Julia Lawall napsal(a):
> The original version only considered the case where the then branch
> contains only one call to PTR_ERR. Reimplement the whole thing to allow
> multiple calls, with potentially different arguments.
>
> Signed-off-by: Julia Lawall
Dne 17.10.2015 v 11:35 Julia Lawall napsal(a):
> Fix a couple spelling mistakes.
>
> Signed-off-by: Julia Lawall
Applied, thanks.
Michal
___
Cocci mailing list
Cocci@systeme.lip6.fr
Dne 22.9.2015 v 15:27 Julia Lawall napsal(a):
> On Tue, 22 Sep 2015, Andrzej Hajda wrote:
>
>> kbuild/gcc uses -include option to include files and -I to provide paths for
>> #include <> directive. In case of spatch latter option should be prefixed
>> with
That hash sign in the comment was not
Dne 22.10.2015 v 22:11 Julia Lawall napsal(a):
> 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
Applied to kbuild.git#misc, thanks.
Michal
Dne 23.10.2015 v 21:35 Julia Lawall napsal(a):
> Acked-by: Julia Lawall
>
> On Fri, 23 Oct 2015, Daniel Granat wrote:
>
>> * Extend checking on tables containing structures which are
>> initialized without specifying member name. Added new tables
>> for checking:
Dne 18.10.2015 v 11:55 SF Markus Elfring napsal(a):
>> Remove removal and re-addition of freeing functions.
>
> I find such a wording confusing for a commit message.
It is also a bit confusing to use the same subject for two patches in a
series. How about
[PATCH 1/2] coccinelle: ifnullfree:
Dne 26.10.2015 v 22:28 Julia Lawall napsal(a):
> Extend ifnullfree to the various destroy functions that were recently
> extended to tolerate NULL arguments.
>
> Signed-off-by: Julia Lawall
Applied both to kbuild.git#misc, thanks.
Michal
On 2015-07-10 06:53, Krzysztof Kozlowski wrote:
i2c_add_driver (through i2c_register_driver) sets the owner field so we
can drop it also from i2c drivers, just like from platform drivers.
Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com
Applied to kbuild.git#misc.
Michal
On 2015-08-12 16:53, Kris Borer wrote:
On Wed, Aug 12, 2015 at 10:12 AM, Michal Marek mma...@suse.cz
mailto:mma...@suse.cz wrote:
On 2015-08-12 15:51, Kris Borer wrote:
Add a semantic patch for fixing some cases of checkpatch.pl
http://checkpatch.pl error:
ERROR: do
On 2015-08-12 15:51, Kris Borer wrote:
Add a semantic patch for fixing some cases of checkpatch.pl error:
ERROR: do not use assignment in if condition
There is a gcc warning for this already.
Michal
___
Cocci mailing list
Cocci@systeme.lip6.fr
On Tue, Jun 02, 2015 at 07:18:07AM +0200, Julia Lawall wrote:
On Mon, 1 Jun 2015, Fabio Estevam wrote:
From: Fabio Estevam fabio.este...@freescale.com
Insert a blank line in order to improve the readability of the
generated patch and also make it consistent with the other
.cocci
Dne 25.5.2015 v 14:30 Valentin Rothberg napsal(a):
On Mon, May 25, 2015 at 8:21 AM, Julia Lawall julia.law...@lip6.fr wrote:
Valentin? (It's his semantic patch)
julia
On Sun, 24 May 2015, Fabio Estevam wrote:
From: Fabio Estevam fabio.este...@freescale.com
Improve the commit log of the
Dne 20.5.2015 v 19:02 Fabio Estevam napsal(a):
From: Fabio Estevam fabio.este...@freescale.com
Correct form is 'always requested'.
Signed-off-by: Fabio Estevam fabio.este...@freescale.com
Acked-by: Julia Lawall julia.law...@lip6.fr
---
scripts/coccinelle/misc/irqf_oneshot.cocci | 2 +-
Dne 18.5.2015 v 04:25 Julia Lawall napsal(a):
On Sun, 17 May 2015, Dmitry Kalinkin wrote:
This semantic patch replaces explicit computations of vma page count
with explicit function call.
Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com
Acked-by: Julia Lawall julia.law...@lip6.fr
Dne 10.5.2015 v 04:15 Julia Lawall napsal(a):
On Sat, 9 May 2015, Fabio Estevam wrote:
From: Fabio Estevam fabio.este...@freescale.com
Insert a blank line in order to improve the readability of the
generated patch and also make it consistent with the other
.cocci files.
Signed-off-by:
On Sun, Mar 22, 2015 at 11:29:13AM +0100, Julia Lawall wrote:
Acked-by: Julia Lawall julia.law...@lip6.fr
Good fix, thanks!
Applied to kbuild.git#misc.
Michal
___
Cocci mailing list
Cocci@systeme.lip6.fr
Dne 21.11.2014 v 19:07 Wolfram Sang napsal(a):
On Fri, Nov 07, 2014 at 06:51:05PM +0100, Wolfram Sang wrote:
On Tue, Oct 28, 2014 at 03:18:24PM -0200, Mauro Carvalho Chehab wrote:
The comma after --no-includes makes coccinelle to not run the script:
/usr/bin/spatch -D report --very-quiet
On Sat, Aug 23, 2014 at 07:34:45AM +0200, Julia Lawall wrote:
From: Julia Lawall julia.law...@lip6.fr
This semantic patch simplifies cases where the effect of the processing of
a function call's return code is just to return the result of the function
directly. It may also delete a local
On 2014-08-05 20:16, Julia Lawall wrote:
On Tue, 5 Aug 2014, Michal Marek wrote:
On 2014-07-20 23:36, Himangi Saraogi wrote:
This script detects cases where BUG() follows an if condition on an
expression and replaces the if condition and BUG() with a BUG_ON having
the conditional
On 2014-07-20 23:36, Himangi Saraogi wrote:
This script detects cases where BUG() follows an if condition on an
expression and replaces the if condition and BUG() with a BUG_ON having
the conditional expression of the if statement as argument.
Signed-off-by: Himangi Saraogi
On 2014-06-01 20:12, Peter Senna Tschudin wrote:
This semantic patch looks for variables that are initialized with a
constant, are never updated, and are only used as parameter of return.
Return the constant instead of using a variable.
Signed-off-by: Peter Senna Tschudin
(added the rest of the coccinelle gang to cc)
Dne 28.5.2014 16:10, Himangi Saraogi napsal(a):
This patch solves the parse-error by adding @@ . This is necessary since
Coccinelle version 1.0.0-rc20. Also, the comment is added to use a
recent version of Coccinelle.
Signed-off-by: Himangi
On Fri, Jan 03, 2014 at 02:29:35PM +0100, Julia Lawall wrote:
On Fri, 3 Jan 2014, Michal Marek wrote:
On 2013-12-02 14:39, Nishanth Menon wrote:
As indicated by Sekhar in [1], there seems to be a tendency to use
IS_ERR_VALUE to check the error result for pm_runtime_* functions which
On 2.11.2013 17:49, Julia Lawall wrote:
+@r depends on report || context@
+expression E;
+position p;
+@@
+if@p (E) {}
There should be a * in front of the if, to support context mode.
Josh, will you send a v3 with the above fix?
Thanks,
Michal
On 2.3.2013 22:36, Nicolas Palix wrote:
A recent patch have introduce the VERBOSE variable and comments
now depend on it. However, the message printed for each cocci file
such not be printed when the ONLINE mode is active, whatever is
the value of VERBOSE.
Signed-off-by: Nicolas Palix
On Wed, Jan 23, 2013 at 08:06:30PM -0200, Peter Senna Tschudin wrote:
There are error-prone memcpy() that can be replaced by struct
assignment that are type-safe and much easier to read. This semantic
patch looks for memcpy() that can be replaced by struct assignment.
Inspired by patches
On Sat, Nov 03, 2012 at 09:02:09PM +0100, Julia Lawall wrote:
From: Julia Lawall julia.law...@lip6.fr
Use WARN(1,...) rather than printk followed by WARN(1).
Signed-off-by: Julia Lawall julia.law...@lip6.fr
---
scripts/coccinelle/misc/warn.cocci | 109
Hi Nicolas,
sorry for the delay.
On 12.10.2012 10:48, Nicolas Palix wrote:
+# The ignore_unknown_options flag requires Coccinelle = 0.2.3
+FLAGS=-ignore_unknown_options -very_quiet
+if [ $KBUILD_EXTMOD = ] ; then
+OPTIONS=-dir $srctree $*
Why is -Iinclude not needed in
42 matches
Mail list logo