diff options
-rw-r--r-- | arch/x86/mm/mmio-mod.c | 4 | ||||
-rw-r--r-- | include/linux/mmiotrace.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/mmio-mod.c b/arch/x86/mm/mmio-mod.c index 3b04a0126121..ed0e0e90b3ef 100644 --- a/arch/x86/mm/mmio-mod.c +++ b/arch/x86/mm/mmio-mod.c | |||
@@ -191,7 +191,7 @@ static void pre(struct kmmio_probe *p, struct pt_regs *regs, | |||
191 | struct mmiotrace_rw *my_trace = &get_cpu_var(cpu_trace); | 191 | struct mmiotrace_rw *my_trace = &get_cpu_var(cpu_trace); |
192 | const unsigned long instptr = instruction_pointer(regs); | 192 | const unsigned long instptr = instruction_pointer(regs); |
193 | const enum reason_type type = get_ins_type(instptr); | 193 | const enum reason_type type = get_ins_type(instptr); |
194 | struct remap_trace *trace = p->user_data; | 194 | struct remap_trace *trace = p->private; |
195 | 195 | ||
196 | /* it doesn't make sense to have more than one active trace per cpu */ | 196 | /* it doesn't make sense to have more than one active trace per cpu */ |
197 | if (my_reason->active_traces) | 197 | if (my_reason->active_traces) |
@@ -299,7 +299,7 @@ static void ioremap_trace_core(resource_size_t offset, unsigned long size, | |||
299 | .len = size, | 299 | .len = size, |
300 | .pre_handler = pre, | 300 | .pre_handler = pre, |
301 | .post_handler = post, | 301 | .post_handler = post, |
302 | .user_data = trace | 302 | .private = trace |
303 | }, | 303 | }, |
304 | .phys = offset, | 304 | .phys = offset, |
305 | .id = atomic_inc_return(&next_id) | 305 | .id = atomic_inc_return(&next_id) |
diff --git a/include/linux/mmiotrace.h b/include/linux/mmiotrace.h index 5cbbc374e945..61d19e1b7a0b 100644 --- a/include/linux/mmiotrace.h +++ b/include/linux/mmiotrace.h | |||
@@ -18,7 +18,7 @@ struct kmmio_probe { | |||
18 | unsigned long len; /* length of the probe region */ | 18 | unsigned long len; /* length of the probe region */ |
19 | kmmio_pre_handler_t pre_handler; /* Called before addr is executed. */ | 19 | kmmio_pre_handler_t pre_handler; /* Called before addr is executed. */ |
20 | kmmio_post_handler_t post_handler; /* Called after addr is executed */ | 20 | kmmio_post_handler_t post_handler; /* Called after addr is executed */ |
21 | void *user_data; | 21 | void *private; |
22 | }; | 22 | }; |
23 | 23 | ||
24 | /* kmmio is active by some kmmio_probes? */ | 24 | /* kmmio is active by some kmmio_probes? */ |