* perf_event_v7.c compilation failure in next-20120523
@ 2012-05-23 17:00 Stephen Warren
2012-05-23 17:05 ` Will Deacon
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2012-05-23 17:00 UTC (permalink / raw)
To: linux-arm-kernel
Will,
In next-20120523, the following two commits of yours collided:
d33c88c ARM: 7315/1: perf: add support for the Cortex-A7 PMU
(adds new entry to perf_event_v7.c)
b3426c5 ARM: perf: remove arm_perf_pmu_ids global enumeration
(removes a field from entries in perf_event_v7.c)
This causes:
> In file included from arch/arm/kernel/perf_event.c:610:0:
> arch/arm/kernel/perf_event_v7.c: In function 'armv7_a7_pmu_init':
> arch/arm/kernel/perf_event_v7.c:1294:10: error: 'struct arm_pmu' has no member named 'id'
> arch/arm/kernel/perf_event_v7.c:1294:17: error: 'ARM_PERF_PMU_ID_CA7' undeclared (first use in this function)
The following fixes the compilation error, although I put no thought
into whether it actually works at run-time:
> diff --git a/arch/arm/kernel/perf_event_v7.c b/arch/arm/kernel/perf_event_v7.c
> index 46228f0..f04070b 100644
> --- a/arch/arm/kernel/perf_event_v7.c
> +++ b/arch/arm/kernel/perf_event_v7.c
> @@ -1291,7 +1291,6 @@ static struct arm_pmu *__init armv7_a15_pmu_init(void)
>
> static struct arm_pmu *__init armv7_a7_pmu_init(void)
> {
> - armv7pmu.id = ARM_PERF_PMU_ID_CA7;
> armv7pmu.name = "ARMv7 Cortex-A7";
> armv7pmu.map_event = armv7_a7_map_event;
> armv7pmu.num_events = armv7_read_num_pmnc_events();
^ permalink raw reply [flat|nested] 2+ messages in thread
* perf_event_v7.c compilation failure in next-20120523
2012-05-23 17:00 perf_event_v7.c compilation failure in next-20120523 Stephen Warren
@ 2012-05-23 17:05 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2012-05-23 17:05 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, May 23, 2012 at 06:00:06PM +0100, Stephen Warren wrote:
> Will,
>
> In next-20120523, the following two commits of yours collided:
>
> d33c88c ARM: 7315/1: perf: add support for the Cortex-A7 PMU
> (adds new entry to perf_event_v7.c)
>
> b3426c5 ARM: perf: remove arm_perf_pmu_ids global enumeration
> (removes a field from entries in perf_event_v7.c)
Cheers Stephen. The former commit is actually in 3.4, so I must've missed
it when rebasing yesterday.
I'll update my for-next branch.
Thanks,
Will
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-23 17:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-23 17:00 perf_event_v7.c compilation failure in next-20120523 Stephen Warren
2012-05-23 17:05 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox