Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934156AbeAHPco (ORCPT + 1 other); Mon, 8 Jan 2018 10:32:44 -0500 Received: from mail-sn1nam01on0047.outbound.protection.outlook.com ([104.47.32.47]:11496 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932409AbeAHPcm (ORCPT ); Mon, 8 Jan 2018 10:32:42 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Date: Mon, 8 Jan 2018 18:32:25 +0300 From: Yury Norov To: Will Deacon Cc: Suzuki K Poulose , Arnd Bergmann , Andrew Morton , Mark Rutland , Jonathan Cameron , 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: <20180108153225.zduqdgokcnz5k7yg@yury-thinkpad> References: <20180108124902.3854110-1-arnd@arndb.de> <6521819f-6812-7e70-8b8d-3828992ba551@arm.com> <20180108151547.GJ25869@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180108151547.GJ25869@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [42.107.73.245] X-ClientProxiedBy: HE1PR0102CA0001.eurprd01.prod.exchangelabs.com (2603:10a6:7:14::14) To MWHPR0701MB3834.namprd07.prod.outlook.com (2603:10b6:301:7f::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 910175e3-4014-4777-a0b5-08d556ad0d63 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:MWHPR0701MB3834; X-Microsoft-Exchange-Diagnostics: 1;MWHPR0701MB3834;3:uYeAbpMbP5EWDlK+WjvHMW7k//0NcAAMrkKPVsEQCqBIrhEXTPCMhJ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5p6ZaCxQx60Qg1XMBvidfNH7aaijuXXPk09OMkbavNmCFUYNlve1Kp5a7WILDtTCfIdy358O2NVr53r3ofvyXVWjuhebZCB46cuF8xeV1TPBYxGZQ6zNPFuF8Znu1IDUBXjqMET0+KUsdBwPOTMBJXQ9BBP/QbKosVZGPgBkvjyeOEQeh1DS0BIpPVpYLnAcDv20cHzZguFAlOkQUSqK8MI/pyiZYGpeHRmpJA+7fLT/vQETS6OmtW4unf1ma/43vIlwG4GV6c0hE5fm9J7zyDJOHMVNpNIUkNUII0XYlAQ/ykTe3C72BbbHLa/SSJCev5HDY4GXoDh84WjkpTAqkDCyfpOb9zq2i7Te3KsQe8ZXTOTUS6REH2+CuLo1F2SR2YStxm7svd3UYYgrInGoQfTeLJo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(10201501046)(3231023)(944501075)(3002001)(93006095)(6041268)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:MWHPR0701MB3834;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:MWHPR0701MB3834; X-Microsoft-Exchange-Diagnostics: 1;MWHPR0701MB3834;4:p0uC7+Pk1QdXe4OTkQMPJlkpLv7C0/Mb342OAPZrw+5GYte5v3c/q/g45FgXGIDr32vDOX2DHi06AkJwGnS7MZhpFdLjrxfEgfgYvFAAsqnxmAo4u9POxd+wkH/cKHbEsdJj5XcbjpZsCRjWQO28kHan8ygjcbRw+rfBwBci2uYDVEVLhuOkIGIfTTgsXa8KwwGasSaotCAzNGXerRalq9NaZbWM4VGYsqrlojoSNc6R5wsd8jFvk+5Ylqz0bGE9F2ppD3uGyGh+VrACUdZHei5LN+NYysB8loq7P52b7ob6NDEMzClVaIAvku/zZyx9OO1BSGHwou6WT1WAFjjFeQ== X-Forefront-PRVS: 054642504A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(7916004)(376002)(346002)(396003)(366004)(39850400004)(39380400002)(24454002)(199004)(189003)(6486002)(7736002)(305945005)(2906002)(9686003)(6496006)(53936002)(5660300001)(106356001)(72206003)(4326008)(105586002)(6246003)(53546011)(59450400001)(97736004)(52116002)(8676002)(76176011)(6666003)(6916009)(2950100002)(23726003)(6116002)(1076002)(3846002)(42882006)(229853002)(33896004)(386003)(76506005)(8936002)(15760500003)(50466002)(81166006)(81156014)(83506002)(66066001)(68736007)(47776003)(54906003)(58126008)(16586007)(316002)(33716001)(25786009)(478600001)(16526018)(5009440100003);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR0701MB3834;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MWHPR0701MB3834;23:JopOzHi7BJcUQ/3mhGJEq38ZgBNq/kbOVFWylcQ?= =?us-ascii?Q?EfNQQOA1Xgk6MgVrv2W+pd1xWeKGOGEZpNLun75SMqfgtV9FGOiQyLHJ80DO?= =?us-ascii?Q?Upkffr9ylYZ3zjIedexr1RPflS2JEeteGrkmQRqaDZ94BpW7GKYwZCPIoB2l?= =?us-ascii?Q?A20Xq5/CCV7IIr73KcFXzagSxd6gE/wvtzLomytOvtRyxleZTenG8YeXy2yq?= =?us-ascii?Q?KrEgzwZTKkoJVt/+NnIU8Uamcjy9RaoB/JBHYiSinH58C8bUHm/9D6Sm6CyX?= =?us-ascii?Q?1aam4gfFq30urg5lyNpva8V9Zl5jAGLd2jfTU5c876W+L8Y4dRp0hcPelWVO?= =?us-ascii?Q?mNxHiVMenHxYSN/k6ueXc3J4Xe4f0TzNlC+jRllYuBpLJWy4BUcybX/jS76M?= =?us-ascii?Q?cj5MxVkzDBX+5ketY8+5BD0lKRvqqREz9ZrhvGTmD1fLhBKf9/2hl5Q59RGZ?=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networks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2018 15:32:38.7069 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 910175e3-4014-4777-a0b5-08d556ad0d63 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR0701MB3834 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 03:15:47PM +0000, Will Deacon wrote: > On Mon, Jan 08, 2018 at 02:56:24PM +0000, Suzuki K Poulose wrote: > > 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 > > 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