Skip to content

Commit 12e766d

Browse files
author
Peter Zijlstra
committed
perf: Fix __percpu annotation
With bcecd5a ("percpu: repurpose __percpu tag as a named address space qualifier") the normal compilers start caring about the __percpu annotation, as such f67d1ff ("perf/core: Detach 'struct perf_cpu_pmu_context' and 'struct pmu' lifetimes") needs a fixup. Fixes: f67d1ff ("perf/core: Detach 'struct perf_cpu_pmu_context' and 'struct pmu' lifetimes") Fixes: bcecd5a ("percpu: repurpose __percpu tag as a named address space qualifier") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Reported-by: jirislaby@kernel.org Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
1 parent bd2da08 commit 12e766d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/perf_event.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ struct pmu {
343343
*/
344344
unsigned int scope;
345345

346-
struct perf_cpu_pmu_context __percpu **cpu_pmu_context;
346+
struct perf_cpu_pmu_context * __percpu *cpu_pmu_context;
347347
atomic_t exclusive_cnt; /* < 0: cpu; > 0: tsk */
348348
int task_ctx_nr;
349349
int hrtimer_interval_ms;

0 commit comments

Comments
 (0)