Statistics
| Branch: | Revision:

root / scripts / checkpatch.pl @ feature-archipelago

History | View | Annotate | Download (79.2 kB)

# Date Author Comment
69d5d21f 09/09/2013 10:17 pm Tomoki Sekiyama

checkpatch.pl: Check .cpp files

Enable checkpatch.pl to apply the same checks as C source files for
C++ files with .cpp extensions. It also adds some exceptions for C++
sources to suppress errors for:
- <> used in C++ template arguments (e.g. template <class T>)...

a99ac041 09/05/2012 10:17 pm Don Slutz

CHECKPATCH: Add --debug adv_dcs

Add debug options to find this issue. They were not listed
in the help because the are not simple to understand the output of.

Signed-off-by: Don Slutz <>
Signed-off-by: Blue Swirl <>

5424302e 09/05/2012 10:17 pm Don Slutz

CHECKPATCH: Add --debug adv_checking

Add debug options to find this issue. They were not listed
in the help because the are not simple to understand the output of.

Signed-off-by: Don Slutz <>
Signed-off-by: Blue Swirl <>

69402a69 09/05/2012 10:17 pm Don Slutz

CHECKPATCH: Add --debug adv_apw

Add debug options to find this issue. They were not listed
in the help because the are not simple to understand the output of.

Signed-off-by: Don Slutz <>
Signed-off-by: Blue Swirl <>

dfe7053a 09/05/2012 10:17 pm Don Slutz

CHECKPATCH: Add warning for single else statement.

For an example:

WARNING: braces {} are necessary even for single statement blocks
+ } else
+ return env->regs[R_EAX];

total: 0 errors, 1 warnings, 41 lines checked
Signed-off-by: Don Slutz <>...

9964d8f9 06/22/2012 11:41 am Stefan Weil

checkpatch: Add QEMU specific rule

The new rule detects two wrong variants of QEMU.
It was tested with commit b5a8fe5e.

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

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