diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2012-10-24 12:42:20 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-10-24 12:57:03 +0400 |
commit | 032c3851f51141e30de02ed0bc50a7743dfd776d (patch) | |
tree | 73be4029c23d4f6b584231961c122c5caed2b781 /lib/bug.c | |
parent | 58e9eaf06f5476cb2192ec1d012674ce5e79dd21 (diff) | |
download | linux-032c3851f51141e30de02ed0bc50a7743dfd776d.tar.xz |
perf/x86/uncore: Handle pci_read_config_dword() errors
This, beyond handling corner cases, also fixes some build warnings:
arch/x86/kernel/cpu/perf_event_intel_uncore.c: In function ‘snbep_uncore_pci_disable_box’:
arch/x86/kernel/cpu/perf_event_intel_uncore.c:124:9: warning: ‘config’ is used uninitialized in this function [-Wuninitialized]
arch/x86/kernel/cpu/perf_event_intel_uncore.c: In function ‘snbep_uncore_pci_enable_box’:
arch/x86/kernel/cpu/perf_event_intel_uncore.c:135:9: warning: ‘config’ is used uninitialized in this function [-Wuninitialized]
arch/x86/kernel/cpu/perf_event_intel_uncore.c: In function ‘snbep_uncore_pci_read_counter’:
arch/x86/kernel/cpu/perf_event_intel_uncore.c:164:2: warning: ‘count’ is used uninitialized in this function [-Wuninitialized]
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Cc: a.p.zijlstra@chello.nl
Link: http://lkml.kernel.org/r/1351068140-13456-1-git-send-email-zheng.z.yan@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/bug.c')
0 files changed, 0 insertions, 0 deletions