]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Fix sparse warnings
authorPeter Huewe <peterhuewe@gmx.de>
Mon, 29 Oct 2012 20:48:17 +0000 (21:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 30 Oct 2012 09:10:52 +0000 (10:10 +0100)
commited0613bd7bd5fd619f7d9326ed3f0e49c2a52f39
treed3228627aaaf53a666833cc5ae1d53572f17c213
parentcd17bc014213b7ed984e362ea4fa8c0b13eb39de
perf/x86: Fix sparse warnings

FYI, there are new sparse warnings:

 arch/x86/kernel/cpu/perf_event.c:1356:18: sparse: symbol 'events_attr' was not declared. Should it be static?

This patch makes it static and also adds the static keyword to
fix arch/x86/kernel/cpu/perf_event.c:1344:9: warning: symbol
'events_sysfs_show' was not declared.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Cc: fengguang.wu@intel.com
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/n/tip-lerdpXlnruh0yvWs2owwuizl@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.c