projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7be6296
)
perf/x86/intel: Fix sparse warning
author
Yan, Zheng
<zheng.z.yan@intel.com>
Wed, 5 Jun 2013 08:30:25 +0000
(16:30 +0800)
committer
Ingo Molnar
<mingo@kernel.org>
Wed, 19 Jun 2013 11:04:55 +0000
(13:04 +0200)
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link:
http://lkml.kernel.org/r/1370421025-10986-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
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/perf_event_intel_uncore.c
b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
index
adabe6f
..
9dd9975
100644
(file)
--- a/
arch/x86/kernel/cpu/perf_event_intel_uncore.c
+++ b/
arch/x86/kernel/cpu/perf_event_intel_uncore.c
@@
-536,7
+536,7
@@
__snbep_cbox_get_constraint(struct intel_uncore_box *box, struct perf_event *eve
if (!uncore_box_is_fake(box))
reg1->alloc |= alloc;
- return
0
;
+ return
NULL
;
fail:
for (; i >= 0; i--) {
if (alloc & (0x1 << i))