Hidetoshi Seto
42bdf74c95
checkpatch: trivial fix for trailing statements check
...
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]
> if (cond1
> && cond2
> && cond3) func_foo();
>
> if (cond4) func_bar();
Before:
> ERROR: trailing statements should be on next line
> #1 : FILE: sample.c:1:
> +if (cond1
> [...]
> + && cond3) func_foo();
> ERROR: trailing statements should be on next line
> #5 : FILE: sample.c:5:
> +if (cond4) func_bar();
> +if (cond4) func_bar();
> total: 2 errors, 0 warnings, 5 lines checked
After:
> ERROR: trailing statements should be on next line
> #1 : FILE: sample.c:1:
> +if (cond1
> [...]
> + && cond3) func_foo();
>
> ERROR: trailing statements should be on next line
> #5 : FILE: sample.c:5:
> +if (cond4) func_bar();
>
> total: 2 errors, 0 warnings, 5 lines checked
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-06 11:26:44 -08:00
..
basic
kbuild: move autoconf.h to include/generated
2009-12-12 13:08:15 +01:00
dtc
dtc: Mark various internal functions static
2009-11-15 15:01:41 -08:00
genksyms
genksyms: properly consider EXPORT_UNUSED_SYMBOL{,_GPL}()
2009-12-12 13:08:16 +01:00
kconfig
kconfig: Simplify LSMOD= handling
2010-02-03 11:45:25 -05:00
ksymoops
mod
modpost: fix segfault in sym_is() with prefixed arches
2010-01-17 11:00:53 -08:00
package
scripts/package: deb-pkg: use fakeroot if available
2009-12-12 13:08:16 +01:00
rt-tester
selinux
SELinux: header generation may hit infinite loop
2009-11-23 09:00:44 +11:00
tracing
tracing, perf: Convert the power tracer into an event tracer
2009-09-19 11:42:12 +02:00
.gitignore
kconfig: simplification of scripts/extract-ikconfig
2009-10-07 11:44:18 -04:00
bin2c.c
bloat-o-meter
bootgraph.pl
checkincludes.pl
checkincludes.pl: add option to remove duplicates in place
2009-09-20 12:27:43 +02:00
checkkconfigsymbols.sh
kbuild,scripts: use non-builtin echo for '-e'
2009-10-11 23:21:25 +02:00
checkpatch.pl
checkpatch: trivial fix for trailing statements check
2010-03-06 11:26:44 -08:00
checkstack.pl
checksyscalls.sh
asm-generic: add a generic unistd.h
2009-06-11 21:02:16 +02:00
checkversion.pl
cleanfile
cleanpatch
config
kbuild: add generic --set-str option to scripts/config
2009-06-14 22:48:08 +02:00
conmakehash.c
Fix all -Wmissing-prototypes warnings in x86 defconfig
2009-09-23 07:39:28 -07:00
decodecode
diffconfig
export_report.pl
extract-ikconfig
kconfig: simplification of scripts/extract-ikconfig
2009-10-07 11:44:18 -04:00
gcc-version.sh
gcc-x86_32-has-stack-protector.sh
gcc-x86_64-has-stack-protector.sh
gen_initramfs_list.sh
get_maintainer.pl
scripts/get_maintainer.pl: fix possible infinite loop
2010-03-06 11:26:34 -08:00
gfp-translate
mm: add a gfp-translate script to help understand page allocation failure reports
2009-06-16 19:47:44 -07:00
headerdep.pl
headers.sh
kbuild: do not check for include/asm-$ARCH
2009-12-12 13:08:14 +01:00
headers_check.pl
headers_install.pl
warn about use of uninstalled kernel headers
2009-10-11 23:21:25 +02:00
kallsyms.c
kallsyms: fix segfault in prefix_underscores_count()
2009-09-23 07:39:30 -07:00
Kbuild.include
kbuild: generate modules.builtin
2009-12-12 13:08:16 +01:00
kernel-doc
kernel-doc: drop the -filelist option, it doesn't work
2010-02-26 17:23:50 -08:00
Lindent
Makefile
sparc: Kill PROM console driver.
2009-09-15 17:04:38 -07:00
Makefile.build
MIPS: Tracing: Add an endian argument to scripts/recordmcount.pl
2009-12-17 01:57:22 +00:00
Makefile.clean
Makefile.fwinst
Makefile.headersinst
Makefile.host
Makefile.lib
kbuild: really fix bzImage build with non-bash sh
2010-01-13 13:27:24 +01:00
Makefile.modbuiltin
kbuild: generate modules.builtin
2009-12-12 13:08:16 +01:00
Makefile.modinst
Makefile.modpost
tracing: Remove markers
2009-09-18 21:22:08 +02:00
makelst
markup_oops.pl
markup_oops.pl: fix $func_offset error with x86_64
2010-02-02 18:11:22 -08:00
mkcompile_h
kbuild: move autoconf.h to include/generated
2009-12-12 13:08:15 +01:00
mkmakefile
mksysmap
mkuboot.sh
mkversion
module-common.lds
linker script: throw away .discard section
2009-06-24 15:13:38 +09:00
namespace.pl
patch-kernel
pnmtologo.c
fbdev: work around old compiler bug
2009-06-30 18:55:59 -07:00
profile2linkerlist.pl
recordmcount.pl
Merge commit 'v2.6.33' into tracing/core
2010-02-26 09:18:32 +01:00
setlocalversion
kbuild: fix delay in setlocalversion on readonly source
2009-06-14 22:26:00 +02:00
show_delta
tags.sh
kbuild: specify absolute paths for cscope
2009-12-12 13:08:16 +01:00
unifdef.c
unifdef: update to upstream revision 1.190
2009-12-12 13:08:16 +01:00
ver_linux