Skip to content

Commit f2b4367

Browse files
Sukadev BhattiproluIngo Molnar
authored andcommitted
perf/powerpc: Fix build error
Fix compile errors like those below: CC arch/powerpc/perf/power7-pmu.o /home/git/linux/arch/powerpc/perf/power7-pmu.c:397:2: error: initialization from incompatible pointer type [-Werror] Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Sukadev Bhattiprolu <[email protected]> Acked-by: Arnaldo Carvalho de Melo <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent f7355a5 commit f2b4367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/include/asm/perf_event_server.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ extern ssize_t power_events_sysfs_show(struct device *dev,
124124
* POWER CPU specification.
125125
*/
126126
#define EVENT_VAR(_id, _suffix) event_attr_##_id##_suffix
127-
#define EVENT_PTR(_id, _suffix) &EVENT_VAR(_id, _suffix)
127+
#define EVENT_PTR(_id, _suffix) &EVENT_VAR(_id, _suffix).attr.attr
128128

129129
#define EVENT_ATTR(_name, _id, _suffix) \
130130
PMU_EVENT_ATTR(_name, EVENT_VAR(_id, _suffix), PME_PM_##_id, \

0 commit comments

Comments
 (0)