Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756743AbeAHM4s (ORCPT + 1 other); Mon, 8 Jan 2018 07:56:48 -0500 Received: from mail-sn1nam01on0058.outbound.protection.outlook.com ([104.47.32.58]:40928 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755973AbeAHM4q (ORCPT ); Mon, 8 Jan 2018 07:56:46 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Date: Mon, 8 Jan 2018 15:56:30 +0300 From: Yury Norov To: Arnd Bergmann Cc: Andrew Morton , Will Deacon , Mark Rutland , Jonathan Cameron , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf: arm_dsu_pmu: convert to bitmap_from_arr32 Message-ID: <20180108125630.popylzukmv6rs72u@yury-thinkpad> References: <20180108124902.3854110-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180108124902.3854110-1-arnd@arndb.de> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [42.107.73.245] X-ClientProxiedBy: HE1PR06CA0142.eurprd06.prod.outlook.com (2603:10a6:7:16::29) To CY4PR0701MB3828.namprd07.prod.outlook.com (2603:10b6:910:94::34) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 520e617f-220e-4d28-129b-08d5569745cc X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:CY4PR0701MB3828; X-Microsoft-Exchange-Diagnostics: 1;CY4PR0701MB3828;3:tm8KtKPoGHtD1Sfw8MZIehFCoH52Zk/ryznk9k0zNhnY1yopvFJAxsx0mYwSMFfcH9uE8zo6VPoTqqFTT/fS7eXj+KWTxv5fYX+LXxjf9C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a4QwhZk5USM2BfV6Ct/oBWVgIibIcaY/hpC4r2AOY8PaJ1d58NzHu1p/ZIm7ahML8nVrT0fARZz0HhEy8OOQa53FEaVoLIztmGr4Yl8zlbegqMwkFftx2rTJUSmgTShwM8G9xQ4H4pn1UnGZ/z0Uhc9/uUmZcFJLbMMmyCPgnE6k+GB04t24XjvIF4hEf42xkBrdRpGcW1iDbw+jN/YUeKpXS303frBpNKZzMxkocZE3IYpFcf+5pc/rSnDhfidoturR5rhp9D8LrYfco5cwjI+xTQhntFdmfexRIqzbPct8Wj/I4dkRQRFiP6Bc7CRHrWPYuoeVDLPNUByUu+iNtjB2ZQABSc=;4:Zf/V3fjDEcjn//qH5RTgUSNmPgLif9OXACpyeoBlqisIuzX/BLBtYS03aPTnk4MJ2KQMxm/1jSFExy2S7WozcpW2qdFDZxIpOz0FN41p4Wa3TzBVxD5G1YQq0LOg/ePdnIiFBS+TvmFxawyz3V64B0M8MWbtYcrW50vtPMOjZj//r5qdyQWOkubNWUEarZF8WovMPuMxVxR1moi0x6T8yWUeVhCt0r5BT+eXmkeR/TvkTibpBF5wKrOwCELDWvhUDWMYcNHM1bujr47hk+ivRpr3culWDSf4IIym2jPuXe4pQSiTv2xZFbWI5SSyqN7J X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(3002001)(10201501046)(93006095)(6041268)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011);SRVR:CY4PR0701MB3828;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY4PR0701MB3828; X-Forefront-PRVS: 054642504A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(7916004)(396003)(39380400002)(346002)(376002)(39850400004)(366004)(24454002)(199004)(189003)(52116002)(305945005)(6246003)(66066001)(76506005)(25786009)(58126008)(81156014)(1076002)(81166006)(3846002)(6116002)(16586007)(33716001)(15760500003)(7736002)(76176011)(8676002)(6496006)(33896004)(23726003)(16526018)(5660300001)(9686003)(53936002)(47776003)(68736007)(54906003)(316002)(83506002)(2906002)(50466002)(229853002)(4326008)(2950100002)(6486002)(6916009)(42882006)(386003)(59450400001)(5009440100003)(8936002)(105586002)(478600001)(97736004)(72206003)(6666003)(106356001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR0701MB3828;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR0701MB3828;23:uW1iHqY7OzEQzFUcfDvcNHsqz6IOOkbAPtMIv8A?= =?us-ascii?Q?IlOE4bJC0DDk92x9qs6IpdRwZ6GMV8yl9vI9wFu3nQ3s4KBooy3ghb7I8nEv?= =?us-ascii?Q?vsG0BBLL5cT5lHpKZlli1L0b621bwLetI8AzmobZM040x+x+g1pU90QAkXsZ?= =?us-ascii?Q?D9/53qIYEwOL1g5+7Di2zQWi47bTTlARbJVCANe+wXvhrfuL1YIfAeXebe1D?= =?us-ascii?Q?ycMG3dy9m0580RvmVcRV/+eEgNgLI6cIChRVVzuSNHwiI/1M6wLIaFWwjizm?= =?us-ascii?Q?y3jvz9ERvm5tCo95XiM0dnsInwOKZUhvC5ghzVEbF4gZyl7XDlY+sQydin8S?= =?us-ascii?Q?j5Hr7b4nL12oppvM9FLqTzqRKR3jjaO+ar11fqNww+nRYw1Ez1JPV9/Jk3tX?= =?us-ascii?Q?BGgih+98DmqBJeb1Xv58PqRMD1VWmbIMuOsGqRMC/0WqRE1rd4yhbO5uVGAH?= =?us-ascii?Q?VTs4oDg5VthvL7VKBrSKMWF8UypFXNXknv4xdUTRXa/qsTM+B+fT5h/xxP2s?= =?us-ascii?Q?UPKh3oqBkLCIAuXcoO8aLollBqGyA37+k2p0yafd6SzTpTi24Nlcsib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hgE5FCvbbetQvq0/1AmIyqzyj6ki+mUO1MEvxBHnrGoNOZ25JYO5S7QvZ9eI+wmnibseZEK0yUWOUEmuesJb+jtLK+MCikAGtemNKT6t0rH92V7iUMkJP7J7VvLe+/7khfnSsXwoFw2pw0Ugwf7BLYvoBNABWAwaghdY3ai/gy6RaqnkD9todax7aiKq7s5cu9LEg0ZTQRA9pYr+C8bwM0zpyKYJem9MbHdQHJJYcExrh0+3Smokt295P5lyYV5EjUy/ydvjg8Je+TtyotzM+lyaGEfEp4XWhOX2livjM6/ZvdJHC5iYeetcKTWsjf6k=;5:sPi6XQmpM1fbLi4H4uB3RRjmyAtJ+3+cm09IwaUjBkAgeI9FRPJDRlOT6o7eWrDXVokYVRD8FhwA/TByf0sb82wy2XnYzHhWZxii5YpgyY1cy+ftkeJm2uvEhM5Pr7ay9iMVO5BSPjFLHdvTdDHuAlFpRsPhnL0UQPJAleM+TqQ=;24:DZDhv/kVXO4ikTTOwQ/ltt5thZkAQVfw8cuHPpuUjqVZ4XHt2DCdWZgFkb7NZ7H0wImmM+fTZrzPBOC7KX/lcdmv47g2mnX9RrRsGd3CkPo=;7:zmQo99wM2KpR+jVilQan5hiD8yKcuXvCtIh2vG7DDZ1rngoiNK8Uz/mMrtMlNO9pHPujCnUDDiB6YK96uv7XuE/4kU+1Xcv9n1sUbUg/549scPxLEx3IoHbYYKBmh+nRljkunVFekKiggJWdKrPSyh1gEOrpVSMc+mdCJIYmUaCCBjJF1wh15LUm0CBiR8nsudzeQDjv6OgYAaxELVJJ5oyffDmFKSzjuidjGzEXfBn3gvenF4KSRdcoEZNUt3Pd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 12:56:44.4470 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 520e617f-220e-4d28-129b-08d5569745cc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0701MB3828 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, Jan 08, 2018 at 01:48:31PM +0100, 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) Thanks Arnd, Acked-by: Yury Norov