Files
linux-legacy/include/linux
Bart Van Assche d9ad8bc0ca branch tracer: Fix for enabling branch profiling makes sparse unusable
One of the changes between kernels 2.6.28 and 2.6.29 is that a branch profiler
has been added for if() statements. Unfortunately this patch makes the sparse
output unusable with CONFIG_TRACE_BRANCH_PROFILING=y: when branch profiling is
enabled, sparse prints so much false positives that the real issues are no
longer visible. This behavior can be reproduced as follows:
* enable CONFIG_TRACE_BRANCH_PROFILING, e.g. by running make allyesconfig or
  make allmodconfig.
* run make C=2

Result: a huge number of the following sparse warnings.
...
include/linux/cpumask.h:547:2: warning: symbol '______r' shadows an earlier one
include/linux/cpumask.h:547:2: originally declared here
...

The patch below fixes this by disabling branch profiling while analyzing the
kernel code with sparse.

See also:
* http://lkml.org/lkml/2008/11/21/18
* http://bugzilla.kernel.org/show_bug.cgi?id=12925

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Steven Rostedt <srostedt@redhat.com>
LKML-Reference: <200904051620.02311.bart.vanassche@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-04-07 17:07:40 +02:00
..
…
2009-01-30 19:50:25 +05:30
2009-01-30 19:59:53 +05:30
…
…
2009-01-11 01:34:25 +01:00
…
…
2009-01-09 12:37:15 -08:00
2009-01-30 23:30:42 +05:30
2009-01-30 23:32:45 +05:30
…
…
2009-01-30 23:37:37 +05:30
…
…
…
2009-02-16 00:43:24 +01:00
…
…
…
2009-01-30 23:38:03 +05:30
…
…
…
2009-01-30 23:38:37 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-01-30 23:39:42 +05:30
…
…
…
…
…
2009-01-30 23:40:06 +05:30
2009-01-06 15:59:29 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-01-30 23:44:08 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-02-05 16:48:53 +11:00
…
…
…
…
…
2009-03-01 00:19:35 -08:00
…
…
…
…
…
…
…
…
…
2009-01-28 07:50:14 -08:00
2009-01-30 23:46:03 +05:30
…
…
…
…
…
2009-01-30 23:46:40 +05:30
…
…
…
…
2009-01-30 23:48:33 +05:30
2009-02-10 00:41:26 +01:00
…
…
…
2009-01-30 23:49:07 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
2009-02-18 15:37:56 -08:00
…
…
…
…
…
…
…
2009-01-06 15:59:01 -08:00
…
2009-02-12 14:16:46 -05:00
…
…
…
2009-01-30 23:50:37 +05:30
2009-01-30 23:51:17 +05:30
…
…
…
…
…
…
…
…
…
…
2009-01-26 21:19:52 +01:00
…
…
…
…
…
…
…
…
2009-01-30 23:51:41 +05:30
…
2009-01-30 23:52:16 +05:30
…
…
…
2009-01-30 23:53:12 +05:30
…
2009-01-30 23:53:40 +05:30
2009-01-30 23:54:53 +05:30
…
2009-01-30 23:55:45 +05:30
…
2009-01-30 23:56:13 +05:30
2009-01-30 23:56:48 +05:30
…
…
2009-01-30 23:57:16 +05:30
…
2009-02-02 21:40:58 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-01-30 23:58:41 +05:30
2009-01-30 23:59:44 +05:30
2009-01-31 00:00:06 +05:30
2009-01-11 19:13:45 +01:00
…
…
…
…
…
…
…
…
…
2009-01-15 16:39:37 -08:00
…
…
…
2009-03-01 00:19:36 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-03-05 07:25:02 -05:00
…
…
…
…
…
…
…
…
…
…
…
2009-01-21 10:39:51 +01:00
…
…
…
…
…
…
…
…
…
…
…
2009-01-31 00:00:35 +05:30
2009-02-18 15:37:55 -08:00
…
…
…
…
…
…
…
…
2009-01-31 00:01:11 +05:30
…
…
…
2009-01-14 18:09:02 +01:00
…
…
…
…
…
…
…
2009-03-04 23:46:25 -08:00
…
…
…
…
…
2009-01-07 17:38:31 -05:00
…
2009-03-10 20:33:18 -04:00
…
2009-03-10 20:33:18 -04:00
…
…
…
…
…
…
…
…
…
…
2009-01-08 08:31:05 -08:00
…
…
…
…
…
…
…
…
2009-01-31 00:02:54 +05:30
…
2009-01-08 08:31:12 -08:00
…
2009-01-31 00:03:40 +05:30
…
…
…
…
…
2009-01-06 15:59:12 -08:00
…
2009-01-31 00:05:30 +05:30
…
…
…
…
…
…
…
2009-01-16 18:02:10 +01:00
…
2009-01-31 00:05:59 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-01-07 09:58:22 +11:00
…
…
2009-02-18 15:37:53 -08:00
…
…
…
…
…
…
2009-01-31 00:06:33 +05:30
2009-02-20 17:57:48 -08:00
…
…
…
…
…
…
…
2009-02-02 21:44:09 +05:30
…
…
…
…
…
2009-01-31 00:07:00 +05:30
…
…
…
…
…
2009-03-06 17:39:04 +01:00
…
2009-01-08 08:31:10 -08:00
…
…
2009-01-31 00:07:31 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-02-18 15:37:53 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2009-01-31 00:10:59 +05:30
…
…
…
…
…
…
…
2009-01-06 15:59:09 -08:00
…
…
…
…
…
…
…
…