<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/coccinelle/misc, branch v4.9</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.9</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.9'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2016-10-11T07:57:17Z</updated>
<entry>
<title>Coccinelle: flag conditions with no effect</title>
<updated>2016-10-11T07:57:17Z</updated>
<author>
<name>Nicholas Mc Guire</name>
<email>hofrat@osadl.org</email>
</author>
<published>2016-10-08T15:51:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c8990359d4b12f14656386526ddf904635076902'/>
<id>urn:sha1:c8990359d4b12f14656386526ddf904635076902</id>
<content type='text'>
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 &lt;hofrat@osadl.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>Coccinelle: noderef: Add new rules and correct the old rule</title>
<updated>2016-06-20T15:20:13Z</updated>
<author>
<name>Vaishali Thakkar</name>
<email>vaishali.thakkar@oracle.com</email>
</author>
<published>2016-05-24T04:19:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bf56cc04ef97c8ec536e3fcd16fc57902cba339f'/>
<id>urn:sha1:bf56cc04ef97c8ec536e3fcd16fc57902cba339f</id>
<content type='text'>
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 as
second rule with arguments reversed. So, change that as well.

Signed-off-by: Vaishali Thakkar &lt;vaishali.thakkar@oracle.com&gt;
Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>scripts: coccinelle: remove check to move constants to right</title>
<updated>2016-04-20T07:53:27Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa@the-dreams.de</email>
</author>
<published>2016-03-19T17:37:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f931362b38191016b7a6dc31d90a515b37658e02'/>
<id>urn:sha1:f931362b38191016b7a6dc31d90a515b37658e02</id>
<content type='text'>
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 rather see it removed.

Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>coccinelle: bugon: reduce rule applicability</title>
<updated>2016-02-18T21:09:40Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2016-02-03T18:05:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f75621c6ecadbd1802a7142fd346511cea05250a'/>
<id>urn:sha1:f75621c6ecadbd1802a7142fd346511cea05250a</id>
<content type='text'>
Rule r is only use in org or report mode, so only execute it in those
cases.

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>Coccinelle: array_size: reduce rule applicability</title>
<updated>2016-02-18T21:06:28Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2016-01-30T16:13:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c7eaa8873b3e50667e0b6529141139147f34748e'/>
<id>urn:sha1:c7eaa8873b3e50667e0b6529141139147f34748e</id>
<content type='text'>
Rule r is only use in org or report mode, so only execute it in those
cases.

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>Coccinelle: reduce rule applicability</title>
<updated>2016-02-18T21:05:30Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2016-01-30T15:27:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8f551befa2269dc244bcfbcad795132f833cb71c'/>
<id>urn:sha1:8f551befa2269dc244bcfbcad795132f833cb71c</id>
<content type='text'>
Rule r is only use in org or report mode, so only execute it in those
cases.

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>coccinelle: Improve checking for missing NULL terminators</title>
<updated>2015-10-26T21:44:51Z</updated>
<author>
<name>Daniel Granat</name>
<email>d.granat@samsung.com</email>
</author>
<published>2015-10-23T15:31:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=67afc2110a84872aa6aae44ce6b2ea6534db1438'/>
<id>urn:sha1:67afc2110a84872aa6aae44ce6b2ea6534db1438</id>
<content type='text'>
Extend checking on tables containing structures which are initialized
without specifying member name. Added new tables for checking:
i2c_device_id and platform_device_id.

Signed-off-by: Daniel Granat &lt;d.granat@samsung.com&gt;
Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>coccinelle: misc: remove "complex return code" warnings</title>
<updated>2015-10-26T21:10:01Z</updated>
<author>
<name>Johan Hovold</name>
<email>johan@kernel.org</email>
</author>
<published>2015-09-30T22:37:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1a617a8475e8509255cc77f88c148095f4cc05ba'/>
<id>urn:sha1:1a617a8475e8509255cc77f88c148095f4cc05ba</id>
<content type='text'>
This effectively reverts 932058a5d5f9 ("coccinelle: misc: semantic patch
to delete overly complex return code processing").

There can be both symmetry and readability reasons for not wanting to do
the final function call as part of the return statement and to maintain
a clear separation of success and error paths.

Since this is in no way mandated by the coding standard, let's just
remove this semantic patch to avoid having "clean up" patches being
posted over and over in response to these Coccinelle warnings.

Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>coccinelle: misc: move constants to the right</title>
<updated>2015-10-26T19:39:44Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2015-09-04T19:27:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=74a8478f9ea2b3e70640a64db8acd54d4225a2c4'/>
<id>urn:sha1:74a8478f9ea2b3e70640a64db8acd54d4225a2c4</id>
<content type='text'>
Move constants to the right in binary operators.

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.com&gt;
</content>
</entry>
<entry>
<title>coccinelle: simple_return: Add a blank line</title>
<updated>2015-06-03T08:23:33Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2015-06-02T01:52:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f94c56f4f33dd34551af6bcc1afde5082fdf6e86'/>
<id>urn:sha1:f94c56f4f33dd34551af6bcc1afde5082fdf6e86</id>
<content type='text'>
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: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
</feed>
