2010-08-07 18:01:05

by Namhyung Kim

[permalink] [raw]
Subject: [PATCH] kgdb: add missing __percpu markup in arch/x86/kernel/kgdb.c

breakinfo->pev is a pointer to percpu pointer but was missing __percpu markup.
Add it.

Signed-off-by: Namhyung Kim <[email protected]>
---
arch/x86/kernel/kgdb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
index 01ab17a..f3be870 100644
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
@@ -196,7 +196,7 @@ static struct hw_breakpoint {
unsigned long addr;
int len;
int type;
- struct perf_event **pev;
+ struct perf_event * __percpu *pev;
} breakinfo[4];

static unsigned long early_dr7;
--
1.7.0.4


2010-08-07 19:35:42

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH] kgdb: add missing __percpu markup in arch/x86/kernel/kgdb.c

On 08/07/2010 08:00 PM, Namhyung Kim wrote:
> breakinfo->pev is a pointer to percpu pointer but was missing __percpu markup.
> Add it.
>
> Signed-off-by: Namhyung Kim <[email protected]>

Acked-by: Tejun Heo <[email protected]>

--
tejun