<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/checkpatch.pl, branch v3.16</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=v3.16</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.16'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2014-06-23T23:47:44Z</updated>
<entry>
<title>checkpatch: reduce false positives when checking void function return statements</title>
<updated>2014-06-23T23:47:44Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2014-06-23T20:22:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b43ae21bd1d8199df10548f3fc0d806052027f29'/>
<id>urn:sha1:b43ae21bd1d8199df10548f3fc0d806052027f29</id>
<content type='text'>
The previous patch had a few too many false positives on styles that
should be acceptable.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Tested-by: Anish Bhatt &lt;anish@chelsio.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/checkpatch.pl: device_initcall is not the only __initcall substitute</title>
<updated>2014-06-04T23:54:20Z</updated>
<author>
<name>Fabian Frederick</name>
<email>fabf@skynet.be</email>
</author>
<published>2014-06-04T23:12:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ae3ccc4678fec2d270a4c54981831c7b8a2da9cd'/>
<id>urn:sha1:ae3ccc4678fec2d270a4c54981831c7b8a2da9cd</id>
<content type='text'>
This patch adds a link to init.h to find appropriate initcall function to
replace obsolete __initcall

Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Cc: Andy Whitcroft &lt;apw@canonical.com&gt;
Cc: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: check stable email address</title>
<updated>2014-06-04T23:54:20Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2014-06-04T23:12:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9b3189eb424044e51c8847063b2ba314b57b6ed2'/>
<id>urn:sha1:9b3189eb424044e51c8847063b2ba314b57b6ed2</id>
<content type='text'>
It should be stable@vger.kernel.org, not stable@kernel.org.

Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: warn on unnecessary void function return statements</title>
<updated>2014-06-04T23:54:20Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2014-06-04T23:12:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9819cf252a0fad1bf46aac8a051cf30426e073ee'/>
<id>urn:sha1:9819cf252a0fad1bf46aac8a051cf30426e073ee</id>
<content type='text'>
void function lines that use a single tab then "return;" are generally
unnecessary.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: prefer kstrto&lt;foo&gt; to sscanf(buf, "%&lt;lhuidx&gt;", &amp;bar);</title>
<updated>2014-06-04T23:54:20Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2014-06-04T23:12:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=afc819ab0293be3bd5c16d9eba26f9d57f61c42a'/>
<id>urn:sha1:afc819ab0293be3bd5c16d9eba26f9d57f61c42a</id>
<content type='text'>
Use the kstrto&lt;foo&gt; functions in preference to sscanf.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: add warning for kmalloc/kzalloc with multiply</title>
<updated>2014-06-04T23:54:20Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2014-06-04T23:12:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=60a55369aad3336e604218abf2057363f69c0722'/>
<id>urn:sha1:60a55369aad3336e604218abf2057363f69c0722</id>
<content type='text'>
Protect against sizeof overflows by preferring kmalloc_array/kcalloc over
kmalloc/kzalloc with a sizeof multiply.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Cc: Andy Whitcroft &lt;apw@canonical.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: warn on #defines ending in semicolon</title>
<updated>2014-06-04T23:54:20Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2014-06-04T23:12:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f5ef95b12eb03ae4b3994cdb035612e127b630b9'/>
<id>urn:sha1:f5ef95b12eb03ae4b3994cdb035612e127b630b9</id>
<content type='text'>
Using a #define ending in a semicolon is poor style and can lead to
unexpected code paths being executed.

Warn on uses of these #define types:

	#define foo[(...)] bar;
	#define foo[(...)]	\
		bar;

Based on a patch from Borislav Petkov.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Cc: Borislav Petkov &lt;bp@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: make --strict a default for files in drivers/net and net/</title>
<updated>2014-06-04T23:54:20Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2014-06-04T23:12:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2ac73b4f685e699ccdfa6855e826df846999d577'/>
<id>urn:sha1:2ac73b4f685e699ccdfa6855e826df846999d577</id>
<content type='text'>
Networking files are generally more strictly conformant to linux-kernel
style so make checkpatch more verbose by default for patches to files or
when checking files in these directories.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Cc: Andy Whitcroft &lt;apw@canonical.com&gt;
Cc: David Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: always warn on missing blank line after variable declaration block</title>
<updated>2014-06-04T23:54:19Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2014-06-04T23:12:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3f7bac031c6ba61c89b06b279f74a25309da1625'/>
<id>urn:sha1:3f7bac031c6ba61c89b06b279f74a25309da1625</id>
<content type='text'>
Make the test system wide, modify the message too.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: fix wildcard DT compatible string checking</title>
<updated>2014-06-04T23:54:19Z</updated>
<author>
<name>Rob Herring</name>
<email>robh@kernel.org</email>
</author>
<published>2014-06-04T23:12:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=185d566bcd0a8e83fe762b3bbef1d58347b9a034'/>
<id>urn:sha1:185d566bcd0a8e83fe762b3bbef1d58347b9a034</id>
<content type='text'>
We attempt to search for compatible strings which use a variable token in
the documented name such as &lt;chip&gt; or &lt;soc&gt;.  While this was attempted to
be handled, it's utterly broken.

The desired forms of matching are:

vendor,&lt;chip&gt;-*
vendor,name&lt;part#&gt;-*

For &lt;chip&gt;, lower case characters and numbers are permitted.  For &lt;part#&gt;,
only numeric values are allowed.

With this change, the number of missing compatible strings reported in
arch/arm/boot/dts is reduced from 1071 to 960.

Reported-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
Tested-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Cc: Florian Vaussard &lt;florian.vaussard@epfl.ch&gt;
Cc: Joe Perches &lt;joe@perches.com&gt;
Cc: Andy Whitcroft &lt;apw@canonical.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
