<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/scripts/checkpatch.pl, branch v4.0</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.0</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.0'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2015-02-14T05:21:40Z</updated>
<entry>
<title>checkpatch: add of_device_id to structs that should be const</title>
<updated>2015-02-14T05:21:40Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-02-13T22:39:05Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=0f3c5aab5e00527eb3167aa9d1725cca9320e01e'/>
<id>urn:sha1:0f3c5aab5e00527eb3167aa9d1725cca9320e01e</id>
<content type='text'>
Uses of struct of_device_id are most commonly const.

Suggest using it as such.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Rob Herring &lt;robh@kernel.org&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: try to avoid poor patch subject lines</title>
<updated>2015-02-14T05:21:40Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-02-13T22:39:02Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a2fe16b9d878a101b67678872e5cd1410c057ec0'/>
<id>urn:sha1:a2fe16b9d878a101b67678872e5cd1410c057ec0</id>
<content type='text'>
Naming the tool that found an issue in the subject line isn't very useful.
 Emit a warning when a common tool (currently checkpatch, sparse or
smatch) is in the subject line.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Suggested-by: Al Viro &lt;viro@ZenIV.linux.org.uk&gt;
Acked-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Acked-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&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 sure a commit reference description uses parentheses</title>
<updated>2015-02-14T05:21:40Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-02-13T22:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=19c146a64c5e14c5dd910e930565edf74637a423'/>
<id>urn:sha1:19c146a64c5e14c5dd910e930565edf74637a423</id>
<content type='text'>
The preferred style for a commit reference in a commit log is:

    commit &lt;foo&gt; ("&lt;title line&gt;")

A recent commit removed this check for parentheses.  Add it back.

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 --strict test for spaces around arithmetic</title>
<updated>2015-02-14T05:21:40Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-02-13T22:38:57Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=d2e025f364369dbe0a7dee1b15f198f5718f246a'/>
<id>urn:sha1:d2e025f364369dbe0a7dee1b15f198f5718f246a</id>
<content type='text'>
Some prefer code to have spaces around arithmetic so instead of:
        a = b*c+d;
suggest
        a = b * c + d;

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: neaten printk_ratelimited message position</title>
<updated>2015-02-14T05:21:40Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-02-13T22:38:54Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=101ee6802a77d3a8f42538360a5e9c3f17d5d5b5'/>
<id>urn:sha1:101ee6802a77d3a8f42538360a5e9c3f17d5d5b5</id>
<content type='text'>
Just neatening...

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: improve "no space necessary after cast" test</title>
<updated>2015-02-14T05:21:40Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-02-13T22:38:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=43f7fe52a82ec9f7aa6420af430745111674c7b9'/>
<id>urn:sha1:43f7fe52a82ec9f7aa6420af430745111674c7b9</id>
<content type='text'>
Code like:
	if (a &lt; sizeof(&lt;type&gt;) &amp;&amp;
and
	{ .len = sizeof(&lt;type&gt;) },

incorrectly emits that warning, so add more exceptions to avoid
the warning.

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: improve seq_print-&gt;seq_puts suggestion</title>
<updated>2015-02-14T05:21:40Z</updated>
<author>
<name>Heba Aamer</name>
<email>heba93aamer@gmail.com</email>
</author>
<published>2015-02-13T22:38:49Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=caac1d5fddf2d55e1e1fd6d86f6fc178c801e286'/>
<id>urn:sha1:caac1d5fddf2d55e1e1fd6d86f6fc178c801e286</id>
<content type='text'>
Improve the format specifier test by removing any %% before looking for
any remaining % format specifier.

Signed-off-by: Heba Aamer &lt;heba93aamer@gmail.com&gt;
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 ability to --fix unnecessary blank lines around braces</title>
<updated>2015-02-14T05:21:39Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-02-13T22:38:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f8e58219dc58cce633697fe15e6c5597bedb296b'/>
<id>urn:sha1:f8e58219dc58cce633697fe15e6c5597bedb296b</id>
<content type='text'>
There's a --strict test for these blank lines.

Add the ability to automatically remove them with --fix.

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 types for other OS typedefs</title>
<updated>2015-02-14T05:21:39Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-02-13T22:38:43Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=021158b4c7bd8d0ec4dc8d09c013288429da7ee2'/>
<id>urn:sha1:021158b4c7bd8d0ec4dc8d09c013288429da7ee2</id>
<content type='text'>
bsd and sysv use different typedefs for unsigned types.

These are in types.h but not in checkpatch, so add them to checkpatch's
ability to know types.

This can avoid false positives for code like:

void foo(void)
{
	int x;
	uint y;

	[...];
}

where checkpatch incorrectly emits a warning for "missing a blank line
after declarations".

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 ability to coalesce commit descriptions on multiple lines</title>
<updated>2015-02-14T05:21:39Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-02-13T22:38:41Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b671fde0572af42495ce3183969b0cafa98fd9ec'/>
<id>urn:sha1:b671fde0572af42495ce3183969b0cafa98fd9ec</id>
<content type='text'>
If a git commit description is split on consecutive lines, coalesce it
before testing.

This allows:

  commit &lt;foo&gt; ("some long
  description")

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Reported-by: Paul Bolle &lt;pebolle@tiscali.nl&gt;
Tested-by: Paul Bolle &lt;pebolle@tiscali.nl&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>
