Statistics
| Branch: | Revision:

root / scripts / checkpatch.pl @ 19bf7c87

History | View | Annotate | Download (76.8 kB)

# Date Author Comment
e7d81004 12/14/2011 01:09 pm Stefan Weil

Fix spelling in comments, documentation and messages

accidently->accidentally
annother->another
choosen->chosen
consideres->considers
decriptor->descriptor
developement->development
paramter->parameter
preceed->precede
preceeding->preceding
priviledge->privilege...

68dfbcd4 12/02/2011 12:50 pm Dong Xu Wang

fix spelling in scripts sub directory

Signed-off-by: Dong Xu Wang <>
Signed-off-by: Stefan Hajnoczi <>

61669f9a 11/26/2011 11:47 am Florian Mickler

checkpatch.pl: fix CAST detection

We should only claim that something is a cast if we did not encouter a
token before, that did set av_pending.

This fixes the operator * in the line below to be detected as binary (vs
unary).

kmalloc(sizeof(struct alphatrack_ocmd) * true_size, GFP_KERNEL);...

e589728b 11/01/2011 11:52 pm Paolo Bonzini

checkpatch: remove rule on non-indented labels

There are 508 non-indented (non-default) labels, and 511 that are
indented. So the rule is debatable at least. Actually, in the
common case of labels at the outermost scope, there is really just
one place where to put the label, so the rule is just wrong IMHO....

01c4330b 08/27/2011 06:44 pm Pavel Borzenkov

checkpatch: fix braces {} handling

checkpatch.pl doesn't report warning for if/else statements with missing
'else' braces:

if (something) {
foo;
} else
bar;

The patch has been tested using the last 100 commits.

Signed-off-by: Pavel Borzenkov <>...

d0510af2 07/21/2011 12:07 am Blue Swirl

checkpatch: Fix bracing false positives on #if

789f88d0b21fedfd4251d56bb7a9fbfbda7a4ac7 only fixed #else,
fix also #if.

Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Blue Swirl <>

9fbe4784 07/17/2011 02:54 am Alexander Graf

checkpatch: don't error out on },{ lines

When having code like this:

static PCIDeviceInfo piix_ide_info[] = {
    {
.qdev.name = "piix3-ide",
.qdev.size = sizeof(PCIIDEState),
.qdev.no_user = 1,
.no_hotplug = 1,...
ad36ce8b 02/05/2011 03:18 pm Blue Swirl

checkpatch.pl: don't complain about old lines with tabs

Don't complain when the patch includes lines with tabs
only in the hunk's untouched context.

Signed-off-by: Blue Swirl <>

789f88d0 01/21/2011 07:32 pm Jan Kiszka

checkpatch: Fix bracing false positives on #else

Signed-off-by: Jan Kiszka <>
Signed-off-by: Blue Swirl <>

b6469683 01/20/2011 10:58 pm Blue Swirl

checkpatch: adjust to QEMUisms

Change checkpatch.pl for QEMU use:
- Root directory detection
- Forbid tabs
- Indent at 4 spaces
- Allow typedefs
- Enforce brace use even for single statement blocks
- Don't suggest nonexistent cleanup tools

Mention the script in CODING_STYLE....

1ec3f6f9 01/20/2011 10:54 pm Blue Swirl

Add checkpatch.pl from Linux kernel

Unchanged import from
http://www.kernel.org/pub/linux/kernel/people/apw/checkpatch/checkpatch.pl-0.31

Signed-off-by: Blue Swirl <>