From patchwork Mon Jan 8 12:48:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10149371 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5298C602B3 for ; Mon, 8 Jan 2018 12:49:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49C1228332 for ; Mon, 8 Jan 2018 12:49:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E9C028574; Mon, 8 Jan 2018 12:49:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A25362856E for ; Mon, 8 Jan 2018 12:49:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=YD4+O7s4pyUNRO6vvT4SGLm4Z/8j7q//cpgdG1/frLM=; b=KD/ WMLfhIRi8U95Z11X1IVqW5zZMHAB23FDeQv1AbCszidR9VOa8u76TcHgrfFw7Bsbbsq57aYWa+Vek 0jWV4EW/supnfz7diBbkWqLr7H3Tsps/+H+6UuZSyzhiTXSFaOh5AmH1+2Z6a6LH0Z3/H8WUroB26 ASmyMFPSGycocIPtHoPKrJyR3xjQFL9Og/RRO3N97oZ95fg3Defv+B/egKckchRaICLGdomqRIZGE 8D+549HgP/kSHvxmwWBvYvtRQ6Vo9XgxLfl8Mv6s+hxxuObz/tYF+baU4ImuwS4Rc4e43OrOqR4qN W2EKWgX/TL/TyfOBkdcSgvVmL4UUf7A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eYWrt-00074O-PV; Mon, 08 Jan 2018 12:49:33 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eYWrp-00073E-Qw for linux-arm-kernel@lists.infradead.org; Mon, 08 Jan 2018 12:49:31 +0000 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0LhiWz-1fByKk2Ftp-00mrqW; Mon, 08 Jan 2018 13:49:03 +0100 From: Arnd Bergmann To: Andrew Morton Subject: [PATCH] perf: arm_dsu_pmu: convert to bitmap_from_arr32 Date: Mon, 8 Jan 2018 13:48:31 +0100 Message-Id: <20180108124902.3854110-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:+qR6iZtkDJtuTTlQABIT0tlawn3NdFjS71T7geuVwDs8dM8xc1q 3FqN42wfvdvp17Um03PQP0KwJSOc9Wu9yi7N8UjBZlTTW4mZmqTXz7ZJrknvNzeEgoO54oX G7HkyUaHmjA9x+8p8ttiuwvzJJnnTN0t0WP7cuu+OAzCWOB2rNWmv1AB8wBlHYy6dBGLMpS WRs69jnhXClF1lvTbFJnw== X-UI-Out-Filterresults: notjunk:1; V01:K0:ZaZi3kSBI0s=:49LphSqP4/3eqAuZigUgSF pK5AX4xEINSUJJ1GCXo66ngBie3kzgj5Fyef7zNg5nAkiqbmXaPbK8ntGuidO7ADxo24/2asA sL1+fSHdYAkhFCnwfKfraKnuW6fa0wDJlM78npVw+dFTsNa/RvE+7nIDDD9+UIDtVHUG8RVf2 tzRQ5KD8IJ+jEh0ZtBnBJJtKKoWmwMxRCR4yTfU03R/aFE5w8xIqaZPdpGGMDWws0srfH0fiP 5u/aUSn6T6ciDrRN8orq/9tG38YYAiTH4h/gqjBQd1lIZzeVr09DAPobcGAoOSvbw1VVl3Igb kwpwdVRsJmVEIx97lX+j++D3aW5x2cpQ+1ZZue8Ruu5HwujXF4UxeannpsKD43srZuoeCIxiQ yp5rV/bs4dKMtmhdi8lGppGKgRj0CQgPQBD+FHW1RmZ52RcvQPnEAGa4VhF9ipnvArtIh+KwL IOD/J7a8OaJJqf3ab10zFl0ywpCQRekL02UbH/L84ThUwH07Ak0mlh83v3LySyB/Bp0Gg9FV7 q+8WyzKVroW86ZYXn290XJehZ6I8V23PkoA60u5X11fMa7heGAlii/A9YQWUjHIzl0p0FoR9f ffU0fXenbRJWCKIM1tXTF7PgRfACQcl9W08KhRdTGQfgaikBJw/Cb8/Tdz4I/4eQH36XYOkrg El073wlwYlXdRq/cT2RBDM8e48P3a3rAYAlVWpnozKBwvVQnEvPtPmo8W5vjNx0sgLcMT7ZWX JasMkbFhjugcMRuxDfijHeiGengm22juG25glaziduPq79OExPZS+THwZr4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180108_044930_209718_6812CE04 X-CRM114-Status: GOOD ( 11.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Arnd Bergmann , Suzuki K Poulose , Will Deacon , linux-kernel@vger.kernel.org, Yury Norov , Jonathan Cameron , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Yury Norov Acked-by: Suzuki K Poulose --- 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)