]> git.karo-electronics.de Git - linux-beck.git/commit
perf_counter tools: Introduce stricter C code checking
authorIngo Molnar <mingo@elte.hu>
Wed, 27 May 2009 07:10:38 +0000 (09:10 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 27 May 2009 06:10:35 +0000 (08:10 +0200)
commit16f762a2ac5ecf8a11f6f0332e46cc3459220da5
treea54f013d037637a91ceac237b2b0455b29cf45d4
parent815e777f913ed54ddb449d2854015c65b4ecbfe3
perf_counter tools: Introduce stricter C code checking

Tighten up our C code requirements:

 - disallow warnings
 - disallow declarations-mixed-with-statements
 - require proper prototypes
 - require C99 (with gcc extensions)

Fix up a ton of problems these measures unearth:

 - unused functions
 - needlessly global functions
 - missing prototypes
 - code mixed with declarations

Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <20090526222155.GJ4424@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/Makefile
Documentation/perf_counter/builtin-help.c
Documentation/perf_counter/builtin-record.c
Documentation/perf_counter/builtin-report.c
Documentation/perf_counter/builtin-stat.c
Documentation/perf_counter/builtin-top.c
Documentation/perf_counter/util/abspath.c
Documentation/perf_counter/util/cache.h
Documentation/perf_counter/util/util.h