public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Andy Whitcroft <apw@shadowen.org>
Cc: Randy Dunlap <rdunlap@xenotime.net>,
	Joel Schopp <jschopp@austin.ibm.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] update checkpatch.pl to version 0.13
Date: Thu, 17 Jan 2008 11:19:23 -0800	[thread overview]
Message-ID: <20080117111923.c2418586.akpm@linux-foundation.org> (raw)
In-Reply-To: <1200587031.0@pinky>

On Thu, 17 Jan 2008 16:23:51 -0000 Andy Whitcroft <apw@shadowen.org> wrote:

> This version brings a large number of fixes which have built up over
> the Christmas period.  Mostly these are fixes for false positives, both
> through improvments to unary checks and possible type detection.  It
> also brings new checks for while location and CVS keywords.

heh.  Doctor, heal thyself.


+               
+                               
+                       
warning: update-checkpatchpl-to-version-013 adds trailing whitespace




box:/usr/src/25> perl scripts/checkpatch.pl patches/update-checkpatchpl-to-version-013.patch
ERROR: trailing whitespace
#202: FILE: scripts/checkpatch.pl:344:
+^I^I$

WARNING: line over 80 characters
#279: FILE: scripts/checkpatch.pl:586:
+		} elsif ($cur =~ /^(#\s*(?:ifdef|ifndef|if|else|elif|endif))/o) {

WARNING: line over 80 characters
#441: FILE: scripts/checkpatch.pl:812:
+					($edge) = ($rawlines[$ln - 1] =~ m@(/\*|\*/)@);

WARNING: line over 80 characters
#450: FILE: scripts/checkpatch.pl:823:
+			if ($linenr == $first_line and $rawline =~ m@^.\s* \*(?:\s|$)@) {

WARNING: line over 80 characters
#473: FILE: scripts/checkpatch.pl:844:
+			($prevrawline, $stashrawline) = ($stashrawline, $rawline);

WARNING: line over 80 characters
#506: FILE: scripts/checkpatch.pl:897:
+			ERROR("Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $herecurr);

WARNING: line over 80 characters
#526: FILE: scripts/checkpatch.pl:916:
+		if ($line =~ /^\+/ && !($prevrawline=~/\/\*\*/) && $length > 80) {

WARNING: line over 80 characters
#548: FILE: scripts/checkpatch.pl:938:
+			WARN("CVS style keyword markers, these will _not_ be updated\n". $herecurr);

ERROR: trailing whitespace
#567: FILE: scripts/checkpatch.pl:950:
+^I^I^I^I$

WARNING: line over 80 characters
#573: FILE: scripts/checkpatch.pl:955:
+			} elsif ($line =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b/) {

WARNING: line over 80 characters
#578: FILE: scripts/checkpatch.pl:959:
+			} elsif ($prev_values eq 'N' && $line =~ /^.\s*(?:$Storage\s+)?(?:const\s+)?($Ident)\b(:?\s+$Sparse)?\s*\**\s*$Ident\s*(?:;|=)/) {

WARNING: line over 80 characters
#584: FILE: scripts/checkpatch.pl:964:
+			while ($line =~ /\(($Ident)(?:\s+$Sparse)*\s*\*+\s*\)/g) {

WARNING: line over 80 characters
#592: FILE: scripts/checkpatch.pl:971:
+			if ($prev_values eq 'N' && $line =~ /^(.(?:typedef\s*)?(?:(?:$Storage|$Inline)\s*)*\s*$Type\s*(?:\b$Ident|\(\*\s*$Ident\))\s*)\(/) {

WARNING: line over 80 characters
#625: FILE: scripts/checkpatch.pl:1147:
+			WARN("LINUX_VERSION_CODE should be avoided, code should be for the version to which it is merged\n" . $herecurr);

WARNING: line over 80 characters
#648: FILE: scripts/checkpatch.pl:1192:
+			if ($name =~ /^(?:if|for|while|switch|return|volatile|__volatile__|__attribute__|format|__extension__|Copyright|case)$/) {

ERROR: trailing whitespace
#649: FILE: scripts/checkpatch.pl:1193:
+^I^I^I$

WARNING: line over 80 characters
#687: FILE: scripts/checkpatch.pl:1412:
+				ERROR("do not use assignment in if condition\n" . $herecurr);

WARNING: line over 80 characters
#705: FILE: scripts/checkpatch.pl:1448:
+				ERROR("while should follow close brace '}'\n" . $hereprev);

WARNING: line over 80 characters
#718: FILE: scripts/checkpatch.pl:1551:
+				#print "statements<" . scalar(@statements) . ">\n";

WARNING: line over 80 characters
#729: FILE: scripts/checkpatch.pl:1692:
+		print "$vname has no obvious style problems and is ready for submission.\n"

WARNING: line over 80 characters
#733: FILE: scripts/checkpatch.pl:1695:
+		print "$vname has style problems, please review.  If any of these errors\n";

total: 3 errors, 18 warnings, 640 lines checked

patches/update-checkpatchpl-to-version-013.patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.


  reply	other threads:[~2008-01-17 19:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17 16:23 [PATCH] update checkpatch.pl to version 0.13 Andy Whitcroft
2008-01-17 19:19 ` Andrew Morton [this message]
2008-01-18 11:37   ` Andy Whitcroft
2008-01-18 13:10     ` Benny Halevy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080117111923.c2418586.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=apw@shadowen.org \
    --cc=jschopp@austin.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@xenotime.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox