<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/coccinelle/misc, branch v3.12</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/scripts/coccinelle/misc?h=v3.12</id>
<link rel='self' href='https://git.amat.us/linux/atom/scripts/coccinelle/misc?h=v3.12'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-08-13T20:43:41Z</updated>
<entry>
<title>coccinelle: replace 0/1 with false/true in functions returning bool</title>
<updated>2013-08-13T20:43:41Z</updated>
<author>
<name>Rasmus Villemoes</name>
<email>linux@rasmusvillemoes.dk</email>
</author>
<published>2013-08-11T21:05:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=46b5c9b856e8bcb44d8570cc55c46d19ca2428ff'/>
<id>urn:sha1:46b5c9b856e8bcb44d8570cc55c46d19ca2428ff</id>
<content type='text'>
This semantic patch replaces "return {0,1};" with "return
{false,true};" in functions returning bool.

Signed-off-by: Rasmus Villemoes &lt;linux@rasmusvillemoes.dk&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: Update the options used to the new option scheme</title>
<updated>2013-07-03T20:58:13Z</updated>
<author>
<name>Nicolas Palix</name>
<email>nicolas.palix@imag.fr</email>
</author>
<published>2013-06-20T11:10:56Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=93f14468491747d6d3efd0b3a42785b1d51a127a'/>
<id>urn:sha1:93f14468491747d6d3efd0b3a42785b1d51a127a</id>
<content type='text'>
spatch has changed its option scheme.
E.g., --no_show_diff is now --no-show-diff

This patch updates:
 - scripts/coccicheck
 - Semantic patches under scripts/coccinelle/

Signed-off-by: Nicolas Palix &lt;nicolas.palix@imag.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts/coccinelle: find constant additions that could be bit ors</title>
<updated>2013-02-22T13:26:00Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2013-02-02T16:19:55Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=24f0c2d6ff859fbca45fd765f0d241528bdb4365'/>
<id>urn:sha1:24f0c2d6ff859fbca45fd765f0d241528bdb4365</id>
<content type='text'>
Semantic patch (http://coccinelle.lip6.fr/) to check for constants that are
added but are used elsewhere as bitmasks.

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts/coccinelle/misc/memcpy-assign.cocci: Replace memcpy with struct assignment</title>
<updated>2013-02-22T10:22:18Z</updated>
<author>
<name>Peter Senna Tschudin</name>
<email>peter.senna@gmail.com</email>
</author>
<published>2013-01-23T22:06:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ff3771cb717fd532d97f354cd169fd10da0d0339'/>
<id>urn:sha1:ff3771cb717fd532d97f354cd169fd10da0d0339</id>
<content type='text'>
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 sent by Ezequiel Garcia &lt;elezegarcia@gmail.com&gt;

Signed-off-by: Peter Senna Tschudin &lt;peter.senna@gmail.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts/coccinelle/misc/semicolon.cocci: Add unneeded semicolon test</title>
<updated>2013-01-24T11:10:38Z</updated>
<author>
<name>Peter Senna Tschudin</name>
<email>peter.senna@gmail.com</email>
</author>
<published>2012-12-08T17:34:34Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7320bfa7cfe31e9ee95a40ab8e52648066284141'/>
<id>urn:sha1:7320bfa7cfe31e9ee95a40ab8e52648066284141</id>
<content type='text'>
This semantic patch looks for semicolons that can be removed without
changing the semantics of the code. The confidence is moderate
because there are some false positives on cases like:

b/drivers/mmc/host/cb710-mmc.c:589
                break;
        case MMC_POWER_UP:
        default:
-               /* ignore */;
        }

There are 37 patches accepted reported by this semantic patch and
more than 300 fixes to be applied.

Signed-off-by: Peter Senna Tschudin &lt;peter.senna@gmail.com&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts/coccinelle/misc/warn.cocci: use WARN</title>
<updated>2012-12-09T14:29:07Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2012-11-03T20:02:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ad99ac2fa76b4a793ee801920f7501c8df6534d0'/>
<id>urn:sha1:ad99ac2fa76b4a793ee801920f7501c8df6534d0</id>
<content type='text'>
Use WARN(1,...) rather than printk followed by WARN(1).

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts/coccinelle: Find threaded IRQs requests which are missing IRQF_ONESHOT</title>
<updated>2012-07-13T13:57:31Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-07-01T11:17:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f1f455047940e59b3aea102e17ae4c0f9286aa76'/>
<id>urn:sha1:f1f455047940e59b3aea102e17ae4c0f9286aa76</id>
<content type='text'>
Since commit 1c6c69525b ("genirq: Reject bogus threaded irq requests") threaded
IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise
the request will fail. This semantic patch will help to statically identify
(and fix) such cases.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts/coccinelle: sizeof of pointer</title>
<updated>2012-05-25T12:51:12Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2012-04-21T18:23:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2cbd08253a011bd9db9a51f15a974df3a779224b'/>
<id>urn:sha1:2cbd08253a011bd9db9a51f15a974df3a779224b</id>
<content type='text'>
Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts/coccinelle: address test is always true</title>
<updated>2012-05-25T12:51:11Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2012-04-21T18:14:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4619c2b8304a0751d9ec2ba89e11f387977c8cb4'/>
<id>urn:sha1:4619c2b8304a0751d9ec2ba89e11f387977c8cb4</id>
<content type='text'>
Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>coccinelle: semantic patch for bool issues</title>
<updated>2012-02-24T23:07:32Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2012-02-10T21:05:18Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8991058171f3536c0a8fbb50ad311689b8b74979'/>
<id>urn:sha1:8991058171f3536c0a8fbb50ad311689b8b74979</id>
<content type='text'>
Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Reviewed-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
</feed>
