perf: arm_dsu_pmu: convert to bitmap_from_arr32
PATCH 1/1 perf: arm_dsu_pmu: convert to bitmap_from_arr32
The bitmap_from_u32array() interface got replaced in a global change, but the arm_dsu_pmu driver adds another instance, resulting in a build failure:
drivers/perf/arm_dsu_pmu.c: In function 'dsu_pmu_probe_pmu':drivers/perf/arm_dsu_pmu.c:661:2: error: implicit declaration of function 'bitmap_from_u32array'; did you mean 'bitmap_from_arr32'? [-Werror=implicit-function-declaration]
This changes the new instance accordingly.
---
The global change is currently in linux-mm, so it should be possible to just fold this patch into it, without causing extra work.
--- drivers/perf/arm_dsu_pmu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/perf/arm_dsu_pmu.c +2 -4
@@ -658,10 +658,8 @@ static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu)return ; cpmceid[0 ] =__dsu_pmu_read_pmceid (0 ); cpmceid[1 ] =__dsu_pmu_read_pmceid (1 ); -bitmap_from_u32array (dsu_pmu->cpmceid_bitmap, -DSU_PMU_MAX_COMMON_EVENTS , - cpmceid, -ARRAY_SIZE (cpmceid)); +bitmap_from_arr32 (dsu_pmu->cpmceid_bitmap, cpmceid, +DSU_PMU_MAX_COMMON_EVENTS ); }static void dsu_pmu_set_active_cpu (int cpu,struct dsu_pmu *dsu_pmu)
Signature · 1 line
2.9.0
Quoted 27 lines · Arnd Bergmann
The
bitmap_from_u32array()interface got replaced in a global change, but thearm_dsu_pmudriver adds another instance, resulting in a build failure:
drivers/perf/arm_dsu_pmu.c: In function 'dsu_pmu_probe_pmu':drivers/perf/arm_dsu_pmu.c:661:2: error: implicit declaration of function 'bitmap_from_u32array'; did you mean 'bitmap_from_arr32'? [-Werror=implicit-function-declaration]This changes the new instance accordingly.
Fixes mmotm ("bitmap: replace bitmap_{from,to}_u32array")Fixes 7520fa99246d ("perf: ARM DynamIQ Shared Unit PMU support")Signed-off-by Arnd Bergmann <[email protected]>---
The global change is currently in linux-mm, so it should be possible to just fold this patch into it, without causing extra work.--- drivers/perf/arm_dsu_pmu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/perf/arm_dsu_pmu.c +0
-0@@ -658,10 +658,8 @@ static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu)return ; cpmceid[0 ] =__dsu_pmu_read_pmceid (0 );
drivers/perf/arm_dsu_pmu.c static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu) · line 665
Quoted 10 lines
drivers/perf/arm_dsu_pmu.c +2
-4cpmceid[1 ] =__dsu_pmu_read_pmceid (1 ); -bitmap_from_u32array (dsu_pmu->cpmceid_bitmap, -DSU_PMU_MAX_COMMON_EVENTS , - cpmceid, -ARRAY_SIZE (cpmceid)); +bitmap_from_arr32 (dsu_pmu->cpmceid_bitmap, cpmceid, +DSU_PMU_MAX_COMMON_EVENTS ); }static void dsu_pmu_set_active_cpu (int cpu,struct dsu_pmu *dsu_pmu)
Thanks Arnd,
Quoted 28 lines · Arnd Bergmann
The
bitmap_from_u32array()interface got replaced in a global change, but thearm_dsu_pmudriver adds another instance, resulting in a build failure:
drivers/perf/arm_dsu_pmu.c: In function 'dsu_pmu_probe_pmu':drivers/perf/arm_dsu_pmu.c:661:2: error: implicit declaration of function 'bitmap_from_u32array'; did you mean 'bitmap_from_arr32'? [-Werror=implicit-function-declaration]This changes the new instance accordingly.
Fixes mmotm ("bitmap: replace bitmap_{from,to}_u32array")Fixes 7520fa99246d ("perf: ARM DynamIQ Shared Unit PMU support")Signed-off-by Arnd Bergmann <[email protected]>---
The global change is currently in linux-mm, so it should be possible to just fold this patch into it, without causing extra work.--- drivers/perf/arm_dsu_pmu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/perf/arm_dsu_pmu.c +0
-0@@ -658,10 +658,8 @@ static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu)return ; cpmceid[0 ] =__dsu_pmu_read_pmceid (0 );
drivers/perf/arm_dsu_pmu.c static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu) · line 665
Quoted 10 lines
drivers/perf/arm_dsu_pmu.c +2
-4cpmceid[1 ] =__dsu_pmu_read_pmceid (1 ); -bitmap_from_u32array (dsu_pmu->cpmceid_bitmap, -DSU_PMU_MAX_COMMON_EVENTS , - cpmceid, -ARRAY_SIZE (cpmceid)); +bitmap_from_arr32 (dsu_pmu->cpmceid_bitmap, cpmceid, +DSU_PMU_MAX_COMMON_EVENTS ); }static void dsu_pmu_set_active_cpu (int cpu,struct dsu_pmu *dsu_pmu)
Arnd,
Thanks for fixing this. FWIW,
Quoted 41 lines · Suzuki K Poulose
Quoted 27 lines · Arnd Bergmann
The
bitmap_from_u32array()interface got replaced in a global change, but thearm_dsu_pmudriver adds another instance, resulting in a build failure:
drivers/perf/arm_dsu_pmu.c: In function 'dsu_pmu_probe_pmu':drivers/perf/arm_dsu_pmu.c:661:2: error: implicit declaration of function 'bitmap_from_u32array'; did you mean 'bitmap_from_arr32'? [-Werror=implicit-function-declaration]This changes the new instance accordingly.
Fixes mmotm ("bitmap: replace bitmap_{from,to}_u32array")Fixes 7520fa99246d ("perf: ARM DynamIQ Shared Unit PMU support")Signed-off-by Arnd Bergmann <[email protected]>---
The global change is currently in linux-mm, so it should be possible to just fold this patch into it, without causing extra work.--- drivers/perf/arm_dsu_pmu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/perf/arm_dsu_pmu.c +0
-0@@ -658,10 +658,8 @@ static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu)return ; cpmceid[0 ] =__dsu_pmu_read_pmceid (0 );drivers/perf/arm_dsu_pmu.c static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu) · line 665
Quoted 10 lines
drivers/perf/arm_dsu_pmu.c +2
-4cpmceid[1 ] =__dsu_pmu_read_pmceid (1 ); -bitmap_from_u32array (dsu_pmu->cpmceid_bitmap, -DSU_PMU_MAX_COMMON_EVENTS , - cpmceid, -ARRAY_SIZE (cpmceid)); +bitmap_from_arr32 (dsu_pmu->cpmceid_bitmap, cpmceid, +DSU_PMU_MAX_COMMON_EVENTS ); }static void dsu_pmu_set_active_cpu (int cpu,struct dsu_pmu *dsu_pmu)Arnd,
Quoted 3 lines
Thanks for fixing this. FWIW,
Acked-by Suzuki K Poulose <[email protected]>
Hmm, what's the best way to get this upstream? The PMU driver is likely to be queued via arm64 soon, but this fixup doesn't apply there.
Will
Quoted 42 lines · Will Deacon
Quoted 41 lines · Suzuki K Poulose
Quoted 27 lines · Arnd Bergmann
The
bitmap_from_u32array()interface got replaced in a global change, but thearm_dsu_pmudriver adds another instance, resulting in a build failure:
drivers/perf/arm_dsu_pmu.c: In function 'dsu_pmu_probe_pmu':drivers/perf/arm_dsu_pmu.c:661:2: error: implicit declaration of function 'bitmap_from_u32array'; did you mean 'bitmap_from_arr32'? [-Werror=implicit-function-declaration]This changes the new instance accordingly.
Fixes mmotm ("bitmap: replace bitmap_{from,to}_u32array")Fixes 7520fa99246d ("perf: ARM DynamIQ Shared Unit PMU support")Signed-off-by Arnd Bergmann <[email protected]>---
The global change is currently in linux-mm, so it should be possible to just fold this patch into it, without causing extra work.--- drivers/perf/arm_dsu_pmu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/perf/arm_dsu_pmu.c +0
-0@@ -658,10 +658,8 @@ static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu)return ; cpmceid[0 ] =__dsu_pmu_read_pmceid (0 );drivers/perf/arm_dsu_pmu.c static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu) · line 665
Quoted 10 lines
drivers/perf/arm_dsu_pmu.c +2
-4cpmceid[1 ] =__dsu_pmu_read_pmceid (1 ); -bitmap_from_u32array (dsu_pmu->cpmceid_bitmap, -DSU_PMU_MAX_COMMON_EVENTS , - cpmceid, -ARRAY_SIZE (cpmceid)); +bitmap_from_arr32 (dsu_pmu->cpmceid_bitmap, cpmceid, +DSU_PMU_MAX_COMMON_EVENTS ); }static void dsu_pmu_set_active_cpu (int cpu,struct dsu_pmu *dsu_pmu)Arnd,
Quoted 6 lines
Quoted 3 lines
Thanks for fixing this. FWIW,
Acked-by Suzuki K Poulose <[email protected]>Hmm, what's the best way to get this upstream? The PMU driver is likely to be queued via arm64 soon, but this fixup doesn't apply there.
Hi Will,
If driver will be merged in linux-next prior to my rework, I can resend it with this patch melded. Is it OK for you?
Yury
Quoted 47 lines · Yury Norov
Quoted 46 lines · Will Deacon
Quoted 44 lines · Suzuki K Poulose
Quoted 27 lines · Arnd Bergmann
The
bitmap_from_u32array()interface got replaced in a global change, but thearm_dsu_pmudriver adds another instance, resulting in a build failure:
drivers/perf/arm_dsu_pmu.c: In function 'dsu_pmu_probe_pmu':drivers/perf/arm_dsu_pmu.c:661:2: error: implicit declaration of function 'bitmap_from_u32array'; did you mean 'bitmap_from_arr32'? [-Werror=implicit-function-declaration]This changes the new instance accordingly.
Fixes mmotm ("bitmap: replace bitmap_{from,to}_u32array")Fixes 7520fa99246d ("perf: ARM DynamIQ Shared Unit PMU support")Signed-off-by Arnd Bergmann <[email protected]>---
The global change is currently in linux-mm, so it should be possible to just fold this patch into it, without causing extra work.--- drivers/perf/arm_dsu_pmu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/perf/arm_dsu_pmu.c +0
-0@@ -658,10 +658,8 @@ static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu)return ; cpmceid[0 ] =__dsu_pmu_read_pmceid (0 );drivers/perf/arm_dsu_pmu.c static void dsu_pmu_probe_pmu(struct dsu_pmu *dsu_pmu) · line 665
Quoted 10 lines
drivers/perf/arm_dsu_pmu.c +2
-4cpmceid[1 ] =__dsu_pmu_read_pmceid (1 ); -bitmap_from_u32array (dsu_pmu->cpmceid_bitmap, -DSU_PMU_MAX_COMMON_EVENTS , - cpmceid, -ARRAY_SIZE (cpmceid)); +bitmap_from_arr32 (dsu_pmu->cpmceid_bitmap, cpmceid, +DSU_PMU_MAX_COMMON_EVENTS ); }static void dsu_pmu_set_active_cpu (int cpu,struct dsu_pmu *dsu_pmu)Arnd,
Thanks for fixing this. FWIW,
Acked-by Suzuki K Poulose <[email protected]>
Quoted 7 lines
Quoted 2 lines
Hmm, what's the best way to get this upstream? The PMU driver is likely to be queued via arm64 soon, but this fixup doesn't apply there.
Hi Will,
If driver will be merged in linux-next prior to my rework, I can resend it with this patch melded. Is it OK for you?
Sure, as long as the arm64 pull hits mainline before the tree carrying your rework (which probably makes sense for changes like this anyway).
Will