Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933894AbeAHO4b (ORCPT + 1 other); Mon, 8 Jan 2018 09:56:31 -0500 Received: from foss.arm.com ([217.140.101.70]:39830 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933880AbeAHO43 (ORCPT ); Mon, 8 Jan 2018 09:56:29 -0500 Subject: Re: [PATCH] perf: arm_dsu_pmu: convert to bitmap_from_arr32 To: Arnd Bergmann , Andrew Morton Cc: Yury Norov , Will Deacon , Mark Rutland , Jonathan Cameron , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20180108124902.3854110-1-arnd@arndb.de> From: Suzuki K Poulose Message-ID: <6521819f-6812-7e70-8b8d-3828992ba551@arm.com> Date: Mon, 8 Jan 2018 14:56:24 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180108124902.3854110-1-arnd@arndb.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 08/01/18 12:48, Arnd Bergmann wrote: > 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. > > Fixes: mmotm ("bitmap: replace bitmap_{from,to}_u32array") > Fixes: 7520fa99246d ("perf: ARM DynamIQ Shared Unit PMU support") > Signed-off-by: Arnd Bergmann > --- > 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(-) > > diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c > index 37c0526c93d5..e2700888a7d9 100644 > --- a/drivers/perf/arm_dsu_pmu.c > +++ b/drivers/perf/arm_dsu_pmu.c > @@ -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) > Arnd, Thanks for fixing this. FWIW, Acked-by: Suzuki K Poulose