* [PATCH] perf/x86/intel: Fix sparse warning
@ 2013-06-05 8:30 Yan, Zheng
2013-06-05 10:44 ` Peter Zijlstra
2013-06-19 18:41 ` [tip:perf/core] " tip-bot for Yan, Zheng
0 siblings, 2 replies; 3+ messages in thread
From: Yan, Zheng @ 2013-06-05 8:30 UTC (permalink / raw)
To: linux-kernel; +Cc: mingo, a.p.zijlstra, Yan, Zheng
From: "Yan, Zheng" <zheng.z.yan@intel.com>
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
---
arch/x86/kernel/cpu/perf_event_intel_uncore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
index 52441a2..422afe0 100644
--- 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))
--
1.8.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perf/x86/intel: Fix sparse warning
2013-06-05 8:30 [PATCH] perf/x86/intel: Fix sparse warning Yan, Zheng
@ 2013-06-05 10:44 ` Peter Zijlstra
2013-06-19 18:41 ` [tip:perf/core] " tip-bot for Yan, Zheng
1 sibling, 0 replies; 3+ messages in thread
From: Peter Zijlstra @ 2013-06-05 10:44 UTC (permalink / raw)
To: Yan, Zheng; +Cc: linux-kernel, mingo
On Wed, Jun 05, 2013 at 04:30:25PM +0800, Yan, Zheng wrote:
> From: "Yan, Zheng" <zheng.z.yan@intel.com>
>
> Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:perf/core] perf/x86/intel: Fix sparse warning
2013-06-05 8:30 [PATCH] perf/x86/intel: Fix sparse warning Yan, Zheng
2013-06-05 10:44 ` Peter Zijlstra
@ 2013-06-19 18:41 ` tip-bot for Yan, Zheng
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Yan, Zheng @ 2013-06-19 18:41 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, peterz, zheng.z.yan, tglx
Commit-ID: b2fa344d0c275ea4436bfc3a97708f2c938ac0eb
Gitweb: http://git.kernel.org/tip/b2fa344d0c275ea4436bfc3a97708f2c938ac0eb
Author: Yan, Zheng <zheng.z.yan@intel.com>
AuthorDate: Wed, 5 Jun 2013 16:30:25 +0800
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 19 Jun 2013 13:04:55 +0200
perf/x86/intel: Fix sparse warning
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--- 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))
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-19 18:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-05 8:30 [PATCH] perf/x86/intel: Fix sparse warning Yan, Zheng
2013-06-05 10:44 ` Peter Zijlstra
2013-06-19 18:41 ` [tip:perf/core] " tip-bot for Yan, Zheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).