[lkml]   [2015]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 4.1 30/65] arc: fix use of uninitialized arc_pmu
4.1-stable review patch.  If anyone has any objections, please let me know.


From: Max Filippov <>

commit 7002f77541f877a5590615ceb3da32b114f14b62 upstream.

static arc_pmu in the arch/arc/kernel/perf_event.c is not initialized as
it's shadowed by a local variable of the same name in the

Signed-off-by: Max Filippov <>
Fixes: 03c94fcf954d "ARC: perf: make @arc_pmu static global"
Signed-off-by: Vineet Gupta <>
Signed-off-by: Greg Kroah-Hartman <>

arch/arc/kernel/perf_event.c | 1 -
1 file changed, 1 deletion(-)

--- a/arch/arc/kernel/perf_event.c
+++ b/arch/arc/kernel/perf_event.c
@@ -266,7 +266,6 @@ static int arc_pmu_add(struct perf_event

static int arc_pmu_device_probe(struct platform_device *pdev)
- struct arc_pmu *arc_pmu;
struct arc_reg_pct_build pct_bcr;
struct arc_reg_cc_build cc_bcr;
int i, j, ret;

 \ /
  Last update: 2015-07-19 22:01    [W:0.262 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site