<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pm24.git/scripts/checkpatch.pl, branch v3.7-rc3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.kobert.dev/pm24.git/atom?h=v3.7-rc3</id>
<link rel='self' href='https://git.kobert.dev/pm24.git/atom?h=v3.7-rc3'/>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/'/>
<updated>2012-10-05T18:05:00Z</updated>
<entry>
<title>checkpatch: fix name of "MODULE_PARM_DESC"</title>
<updated>2012-10-05T18:05:00Z</updated>
<author>
<name>Kees Cook</name>
<email>keescook@chromium.org</email>
</author>
<published>2012-10-05T00:13:38Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=a0a0a7a94c765f7219b57fa3b79389901bb0bc99'/>
<id>urn:sha1:a0a0a7a94c765f7219b57fa3b79389901bb0bc99</id>
<content type='text'>
Fix macro name in checkpatch: s/PARAM/PARM/.

Signed-off-by: Kees Cook &lt;keescook@chromium.org&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 networking specific block comment style</title>
<updated>2012-10-05T18:04:59Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-10-05T00:13:35Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=058806007450489bb8f457b275e5cb5c946320c1'/>
<id>urn:sha1:058806007450489bb8f457b275e5cb5c946320c1</id>
<content type='text'>
In an effort to get fewer checkpatch reviewer corrections, add a
networking specific style test for the preferred networking comment style.

	/* The preferred style for block comments in
	 * drivers/net/... and net/... is like this
	 */

These tests are only used in net/ and drivers/net/

Tested with:

$ cat drivers/net/t.c

/* foo */

/*
 * foo
 */

/* foo
 */

/* foo
 * bar */
$ ./scripts/checkpatch.pl -f drivers/net/t.c
WARNING: networking block comments don't use an empty /* line, use /* Comment...
#4: FILE: net/t.c:4:
+
+/*

WARNING: networking block comments put the trailing */ on a separate line
#12: FILE: net/t.c:12:
+ * bar */

total: 0 errors, 2 warnings, 12 lines checked

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Cc: "Allan, Bruce W" &lt;bruce.w.allan@intel.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: update suggested printk conversions</title>
<updated>2012-10-05T18:04:59Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-10-05T00:13:32Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=8f26b8376faad26372a579606ecbd77b20e99dd8'/>
<id>urn:sha1:8f26b8376faad26372a579606ecbd77b20e99dd8</id>
<content type='text'>
Direct conversion of printk(KERN_&lt;LEVEL&gt;...  to pr_&lt;level&gt; isn't the
preferred conversion when a struct net_device or struct device is
available.

Hint that using netdev_&lt;level&gt; or dev_&lt;level&gt; is preferred to using
pr_&lt;level&gt;.  Add netdev_dbg and dev_dbg variants too.

Miscellaneous whitespace neatening of a misplaced close brace.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Cc: Andy Whitcroft &lt;apw@canonical.com&gt;
Cc: Greg KH &lt;gregkh@linuxfoundation.org&gt;
Cc: Dan Carpenter &lt;dan.carpenter@oracle.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 utf-8 content from a commit log when it's missing from charset</title>
<updated>2012-10-05T18:04:59Z</updated>
<author>
<name>Pasi Savanainen</name>
<email>pasi.savanainen@nixu.com</email>
</author>
<published>2012-10-05T00:13:29Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=fa64205df9dfd7b7662cc64a7e82115c00e428e5'/>
<id>urn:sha1:fa64205df9dfd7b7662cc64a7e82115c00e428e5</id>
<content type='text'>
Check that a commit log doesn't contain UTF-8 when a mail header
explicitly defines a different charset, like

'Content-Type: text/plain; charset="us-ascii"'

Signed-off-by: Pasi Savanainen &lt;pasi.savanainen@nixu.com&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>
<entry>
<title>checkpatch: add control statement test to SINGLE_STATEMENT_DO_WHILE_MACRO</title>
<updated>2012-08-21T23:45:02Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-08-21T23:15:53Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=ac8e97f8a742828daa1d9de37f6e635888f8d71e'/>
<id>urn:sha1:ac8e97f8a742828daa1d9de37f6e635888f8d71e</id>
<content type='text'>
Commit b13edf7ff2dd ("checkpatch: add checks for do {} while (0) macro
misuses") added a test that is overly simplistic for single statement
macros.

Macros that start with control tests should be enclosed in a do {} while
(0) loop.

Add the necessary control tests to the check.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Andy Whitcroft &lt;apw@canonical.com&gt;
Tested-by: Franz Schrober &lt;franzschrober@yahoo.de&gt;
Cc: Stephen Rothwell &lt;sfr@canb.auug.org.au&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 checks for do {} while (0) macro misuses</title>
<updated>2012-07-31T00:25:17Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-07-30T21:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=b13edf7ff2dd0fef95e981170fa71fa6b60421b0'/>
<id>urn:sha1:b13edf7ff2dd0fef95e981170fa71fa6b60421b0</id>
<content type='text'>
These types of macros should not be used for either a single statement
nor should the macro end with a semi-colon.

Add tests for these conditions.

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: Add acheck for use of sizeof without parenthesis</title>
<updated>2012-07-31T00:25:17Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-07-30T21:41:22Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=66c80b6077256898df948ac6acf547b47ddb1fcf'/>
<id>urn:sha1:66c80b6077256898df948ac6acf547b47ddb1fcf</id>
<content type='text'>
Kernel style uses parenthesis around sizeof.

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: check usleep_range() arguments</title>
<updated>2012-07-31T00:25:17Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-07-30T21:41:20Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=4a273195a551a27a9a3ebed072c8df16c853da7f'/>
<id>urn:sha1:4a273195a551a27a9a3ebed072c8df16c853da7f</id>
<content type='text'>
usleep_range() shouldn't use the same args for min and max.

Report it when it happens and when both args are decimal and min &gt; max.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Cc: Yuval Mintz &lt;yuvalmin@broadcom.com&gt;
Cc: Andy Whitcroft &lt;apw@shadowen.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: test for non-standard signatures</title>
<updated>2012-07-31T00:25:17Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-07-30T21:41:18Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=ce0338df3c9a43e709b8a478265b32b9edcc7ccc'/>
<id>urn:sha1:ce0338df3c9a43e709b8a478265b32b9edcc7ccc</id>
<content type='text'>
Warn on non-standard signature styles.

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: Update alignment check</title>
<updated>2012-07-31T00:25:17Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-07-30T21:41:16Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=b34a26f3158cca932b6f1427b97fe12c7838ee68'/>
<id>urn:sha1:b34a26f3158cca932b6f1427b97fe12c7838ee68</id>
<content type='text'>
Parenthesis alignment doesn't correctly check an existing line after an
inserted or modified line with an open parenthesis.

Fix it.

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>
</feed>
