<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/scripts/checkpatch.pl, branch v3.9-rc2</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.9-rc2</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.9-rc2'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2013-02-28T03:10:08Z</updated>
<entry>
<title>checkpatch: improve CamelCase test for Page</title>
<updated>2013-02-28T03:10:08Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2013-02-28T01:02:38Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=be987d9f80354e2e919926349282facd74992f90'/>
<id>urn:sha1:be987d9f80354e2e919926349282facd74992f90</id>
<content type='text'>
Add the ClearPage/SetPage/TestClearPage/TestSetPage variants to the not
reported Page CamelCase variables.

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 USLEEP_RANGE test</title>
<updated>2013-02-22T01:22:26Z</updated>
<author>
<name>Bruce Allan</name>
<email>bruce.w.allan@intel.com</email>
</author>
<published>2013-02-22T00:44:19Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=37581c28e9e77f44a3124ebab99b98643bda1aa2'/>
<id>urn:sha1:37581c28e9e77f44a3124ebab99b98643bda1aa2</id>
<content type='text'>
Do not test udelay() for a value less than 10usec when passed a variable
instead of a hard-coded number; there is no way for checkpatch to know the
value of the variable.  As it is today, it will complain about variables
with alphanumeric characters plus '_', e.g.  foo_bar, but not variables
with other characters, eg.  foo-&gt;bar.

Signed-off-by: Bruce Allan &lt;bruce.w.allan@intel.com&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: Add check for kcalloc argument order</title>
<updated>2013-02-22T01:22:26Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2013-02-22T00:44:18Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=5ce59ae0bcc0f0ad249d21560c9bb5f6061e62a8'/>
<id>urn:sha1:5ce59ae0bcc0f0ad249d21560c9bb5f6061e62a8</id>
<content type='text'>
kcalloc is sometimes misused with the first and second arguments switched.

Same issue with kmalloc_array too.

Bleat if sizeof is the first argument

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: don't emit the CamelCase warning for PageFoo</title>
<updated>2013-02-22T01:22:26Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2013-02-22T00:44:17Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e8eb3997ce2f5887472a674b32f295b0196ecf46'/>
<id>urn:sha1:e8eb3997ce2f5887472a674b32f295b0196ecf46</id>
<content type='text'>
I'm getting a ton of these:

  WARNING: Avoid CamelCase: &lt;PageTransHuge&gt;
  #140: FILE: mm/migrate.c:1576:
  +       if (PageTransHuge(page) &amp;&amp; page_count(page) != 3) {

So exclude anything which starts with "Page".

Tested-by: Andrew Morton &lt;akpm@linux-foundation.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: warn on unnecessary __dev&lt;foo&gt; section markings</title>
<updated>2013-02-22T01:22:26Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2013-02-22T00:44:14Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=56e77d709df72eefe50ce97a701bd2d5614d0009'/>
<id>urn:sha1:56e77d709df72eefe50ce97a701bd2d5614d0009</id>
<content type='text'>
Get people to stop adding __devinit and __devexit section markings.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: Andy Whitcroft &lt;apw@canonical.com&gt;
Cc: Greg KH &lt;greg@kroah.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 dev_&lt;level&gt;( to dev_printk(KERN_&lt;LEVEL&gt;</title>
<updated>2013-02-22T01:22:26Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2013-02-22T00:44:13Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=dc1393130b026908c54d4538abbb5c2badbfabbe'/>
<id>urn:sha1:dc1393130b026908c54d4538abbb5c2badbfabbe</id>
<content type='text'>
Add YA check to printk style.

dev_&lt;level&gt; uses are functions and generate smaller
object code than dev_printk(KERN_&lt;LEVEL&gt;.

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: fix $Float creation of match variables</title>
<updated>2013-02-05T09:38:48Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2013-02-04T22:28:51Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=326b1ffc136d944d403a2b44dc3abace2a4e10fd'/>
<id>urn:sha1:326b1ffc136d944d403a2b44dc3abace2a4e10fd</id>
<content type='text'>
Commit 74349bccedb3 ("checkpatch: add support for floating point
constants") added an unnecessary match variable that caused tests that
used a $Constant or $LvalOrFunc to have one too many matches.

This causes problems with usleep_range, min/max and other extended
tests.

Avoid using match variables in $Float.
Avoid using match variables in $Assignment too.

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 uapi #includes that #include &lt;uapi/...</title>
<updated>2012-12-21T01:40:20Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-12-20T23:05:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=495e9d84607cda966ba6d223d5eb9df0070cd21a'/>
<id>urn:sha1:495e9d84607cda966ba6d223d5eb9df0070cd21a</id>
<content type='text'>
Avoid specifying internal uapi #include paths with uapi/...  as
userspace should not use and never see that.

Neaten message line wrapping above.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Acked-by: David Howells &lt;dhowells@redhat.com&gt;
Acked-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>
<entry>
<title>checkpatch: warn on CamelCase variable names</title>
<updated>2012-12-18T01:15:19Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-12-18T00:02:07Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=323c1260ba2c4b5c4b2a1e9ab6657cde54ccf554'/>
<id>urn:sha1:323c1260ba2c4b5c4b2a1e9ab6657cde54ccf554</id>
<content type='text'>
Store the camelcase variables in a hash and only emit a warning on the
first use of each new variable.

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 support for floating point constants</title>
<updated>2012-12-18T01:15:19Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2012-12-18T00:02:05Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=74349bccedb3e34b4f1fd9c7efd2dda7905e3335'/>
<id>urn:sha1:74349bccedb3e34b4f1fd9c7efd2dda7905e3335</id>
<content type='text'>
Even though the kernel doesn't support using floating point constants,
add a regex for them.

Support forms like: 0x123p1, 123e-1, 1.23, 1.5e23f

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>
