]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
perf/x86/uncore: Handle pci_read_config_dword() errors
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 24 Oct 2012 08:42:20 +0000 (16:42 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 24 Oct 2012 08:57:03 +0000 (10:57 +0200)
commit032c3851f51141e30de02ed0bc50a7743dfd776d
tree73be4029c23d4f6b584231961c122c5caed2b781
parent58e9eaf06f5476cb2192ec1d012674ce5e79dd21
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>
arch/x86/kernel/cpu/perf_event_intel_uncore.c