<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/scripts/checkpatch.pl, branch linux-2.6.34.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-2.6.34.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-2.6.34.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2010-03-06T19:26:44Z</updated>
<entry>
<title>checkpatch: warn on unnecessary spaces before quoted newlines</title>
<updated>2010-03-06T19:26:44Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2010-03-05T21:43:55Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5e79d96eed306a8b4af67b3f35f6867edfabeebc'/>
<id>urn:sha1:5e79d96eed306a8b4af67b3f35f6867edfabeebc</id>
<content type='text'>
Signed-off-by: Joe Perches &lt;joe@perches.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.pl: warn if an adding line introduce spaces before tabs.</title>
<updated>2010-03-06T19:26:44Z</updated>
<author>
<name>Alberto Panizzo</name>
<email>maramaopercheseimorto@gmail.com</email>
</author>
<published>2010-03-05T21:43:54Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=08e4436566250cb98b3f3ac37643b1cf09481256'/>
<id>urn:sha1:08e4436566250cb98b3f3ac37643b1cf09481256</id>
<content type='text'>
Signed-off-by: Alberto Panizzo &lt;maramaopercheseimorto@gmail.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.pl: extend list of expected-to-be-const structures</title>
<updated>2010-03-06T19:26:44Z</updated>
<author>
<name>Emese Revfy</name>
<email>re.emese@gmail.com</email>
</author>
<published>2010-03-05T21:43:53Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=79404849e90a41ea2109bd0e2f7c7164b0c4ce73'/>
<id>urn:sha1:79404849e90a41ea2109bd0e2f7c7164b0c4ce73</id>
<content type='text'>
Based on Arjan's suggestion, extend the list of ops structures that should
be const.

Signed-off-by: Emese Revfy &lt;re.emese@gmail.com&gt;
Cc: Andy Whitcroft &lt;apw@shadowen.org&gt;
Cc: Arjan van de Ven &lt;arjan@infradead.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.pl: add union and struct to the exceptions list</title>
<updated>2010-03-06T19:26:44Z</updated>
<author>
<name>Stefani Seibold</name>
<email>stefani@seibold.net</email>
</author>
<published>2010-03-05T21:43:52Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=22fd2d3e4f75a2596ccdfdcbdfd505c9c60bf346'/>
<id>urn:sha1:22fd2d3e4f75a2596ccdfdcbdfd505c9c60bf346</id>
<content type='text'>
Here is a small code snippet, which will be complained about by
checkpatch.pl:

#define __STRUCT_KFIFO_COMMON(recsize, ptrtype) \
	union { \
		struct { \
			unsigned int	in; \
			unsigned int	out; \
		}; \
		char		rectype[recsize]; \
		ptrtype		*ptr; \
		const ptrtype	*ptr_const; \
	};

This construct is legal and safe, so checkpatch.pl should accept this.  It
should be also true for struct defined in a macro.

Add the `struct' and `union' keywords to the exceptions list of the
checkpatch.pl script, to prevent error message "Macros with multiple
statements should be enclosed in a do - while loop".  Otherwise it is not
possible to build a struct or union with a macro.

Signed-off-by: Stefani Seibold &lt;stefani@seibold.net&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: fix false positive on __initconst</title>
<updated>2010-03-06T19:26:44Z</updated>
<author>
<name>Wolfram Sang</name>
<email>w.sang@pengutronix.de</email>
</author>
<published>2010-03-05T21:43:51Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=52131292c069b74f4b5f3c786ff66ff6e82b0e69'/>
<id>urn:sha1:52131292c069b74f4b5f3c786ff66ff6e82b0e69</id>
<content type='text'>
checkpatch falsely complained about '__initconst' because it thought the
'const' needed a space before.  Fix this by changing the list of
attributes:

- add '__initconst'
- force plain 'init' to contain a word-boundary at the end

Signed-off-by: Wolfram Sang &lt;w.sang@pengutronix.de&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.pl: allow &gt; 80 char lines for logging functions not just printk</title>
<updated>2010-03-06T19:26:44Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2010-03-05T21:43:51Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=691e669ba8c64d31ac08d87b1751e6acfa3ff65e'/>
<id>urn:sha1:691e669ba8c64d31ac08d87b1751e6acfa3ff65e</id>
<content type='text'>
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: trivial fix for trailing statements check</title>
<updated>2010-03-06T19:26:44Z</updated>
<author>
<name>Hidetoshi Seto</name>
<email>seto.hidetoshi@jp.fujitsu.com</email>
</author>
<published>2010-03-05T21:43:50Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=42bdf74c95b6935f3c09a09ba4bead6cad11b540'/>
<id>urn:sha1:42bdf74c95b6935f3c09a09ba4bead6cad11b540</id>
<content type='text'>
In case if the statement and the conditional are in one line, the line
appears in the report doubly.

And items of this check have no blank line before the next item.

This patch fixes these trivial problems, to improve readability of the
report.

[sample.c]
  &gt; if (cond1
  &gt;        &amp;&amp; cond2
  &gt;        &amp;&amp; cond3) func_foo();
  &gt;
  &gt; if (cond4) func_bar();

Before:
  &gt; ERROR: trailing statements should be on next line
  &gt; #1: FILE: sample.c:1:
  &gt; +if (cond1
  &gt; [...]
  &gt; +       &amp;&amp; cond3) func_foo();
  &gt; ERROR: trailing statements should be on next line
  &gt; #5: FILE: sample.c:5:
  &gt; +if (cond4) func_bar();
  &gt; +if (cond4) func_bar();
  &gt; total: 2 errors, 0 warnings, 5 lines checked

After:
  &gt; ERROR: trailing statements should be on next line
  &gt; #1: FILE: sample.c:1:
  &gt; +if (cond1
  &gt; [...]
  &gt; +       &amp;&amp; cond3) func_foo();
  &gt;
  &gt; ERROR: trailing statements should be on next line
  &gt; #5: FILE: sample.c:5:
  &gt; +if (cond4) func_bar();
  &gt;
  &gt; total: 2 errors, 0 warnings, 5 lines checked

Signed-off-by: Hidetoshi Seto &lt;seto.hidetoshi@jp.fujitsu.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>scripts/checkpatch.pl: add WARN on sizeof(&amp;foo)</title>
<updated>2010-03-06T19:26:44Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2010-03-05T21:43:48Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8f53a9b80f011080555c498d2ca2dc6b1a77c42c'/>
<id>urn:sha1:8f53a9b80f011080555c498d2ca2dc6b1a77c42c</id>
<content type='text'>
sizeof(&amp;foo) is frequently an error.  Warn on its use.

Signed-off-by: Joe Perches &lt;joe@perches.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>remove my email address from checkpatch.</title>
<updated>2010-01-13T04:56:52Z</updated>
<author>
<name>Dave Jones</name>
<email>davej@redhat.com</email>
</author>
<published>2010-01-12T21:59:52Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=dbf004d7883b3adb058c0c1a5635bc4ec27651c0'/>
<id>urn:sha1:dbf004d7883b3adb058c0c1a5635bc4ec27651c0</id>
<content type='text'>
Maybe this will stop people emailing me about it.

Signed-off-by: Dave Jones &lt;davej@redhat.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>checkpatch: version 0.30</title>
<updated>2009-10-29T14:39:31Z</updated>
<author>
<name>Andy Whitcroft</name>
<email>apw@canonical.com</email>
</author>
<published>2009-10-26T23:50:17Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5e8d8f6f2844d4a663415c660ab5cc92e2e2477d'/>
<id>urn:sha1:5e8d8f6f2844d4a663415c660ab5cc92e2e2477d</id>
<content type='text'>
Signed-off-by: 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>
