linux/samples
Tejun Heo 44ee63587d percpu: Add __percpu sparse annotations to hw_breakpoint
Add __percpu sparse annotations to hw_breakpoint.

These annotations are to make sparse consider percpu variables to be
in a different address space and warn if accessed without going
through percpu accessors.  This patch doesn't affect normal builds.

In kernel/hw_breakpoint.c, per_cpu(nr_task_bp_pinned, cpu)'s will
trigger spurious noderef related warnings from sparse.  Changing it to
&per_cpu(nr_task_bp_pinned[0], cpu) will work around the problem but
deemed to ugly by the maintainer.  Leave it alone until better
solution can be found.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: K.Prasad <prasad@linux.vnet.ibm.com>
LKML-Reference: <4B7B4B7A.9050902@kernel.org>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
2010-02-27 16:23:39 +01:00
..
hw_breakpoint percpu: Add __percpu sparse annotations to hw_breakpoint 2010-02-27 16:23:39 +01:00
kobject samples: mark {static|__init|__exit} for {init|exit} functions 2009-01-06 15:59:12 -08:00
kprobes sparc64: cheaper asm/uaccess.h inclusion 2009-08-16 18:25:53 -07:00
trace_events debugfs: Change debuhgfs directory of trace-events-sample.h 2009-09-15 09:50:48 -07:00
tracepoints const: constify remaining file_operations 2009-10-01 16:11:11 -07:00
Kconfig Merge branch 'for-next' into for-linus 2009-12-07 18:36:35 +01:00
Makefile Merge commit 'perf/core' into perf/hw-breakpoint 2009-10-18 01:12:33 +02:00