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: 123702 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2681890qgn; Mon, 8 Jan 2018 04:49:36 -0800 (PST) X-Google-Smtp-Source: ACJfBot0d66iPl0FxdeFKV1Yqw3ERC1vbMgrpkuLKinilmtr+/RfKGdyX35D7QSyC3H/TY4yTpoH X-Received: by 10.84.169.4 with SMTP id g4mr2130928plb.245.1515415776512; Mon, 08 Jan 2018 04:49:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515415776; cv=none; d=google.com; s=arc-20160816; b=PSP/trdoQFnyCii42riWJeUrfj2lxB72PhpZ5aa4uEz6AO6EZFENdBfZ4StZBhsWLC yQtrosd1NfyY4MYzjWeDT25KAMo91PnOKnSMc9iHPKGOLpBGwxWcsSjUgVt5BJ9CKu5c ZiiAlr9U5VlQBZ+PBdxBPHhKrtgi1SLXEiqqp3Ui0PmWdFZeU9CuwIsklyXFBur3n7Ay lLmo2QKHx8R1W4N4twkR/GIiWqGopIed4fOW25qJ+yFLP5CL/MUDp5g139k3RiAL7jE/ 160OzKZ4YTwEfZwKKgixOU4Tma0qUY74toTqZMx/CHZMwoJUxRcc+dVefJRczMpAFlnc 924Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=s21kapW5jxeD1mujpq8RjbITEdcRzV3HK2eyA0qEJ8s=; b=i+/Cv8z/u2IF+7jkei+hQgYrHNPorxafESJXvHcCOuK0+Hx+DjjK8ZqcVb8FUoGFLt fiiXZ7W/maYuMZGPY00DWYRB/nIKeQ2Dsz9VG2OSCkCc7UMhIWUtuf+RQ/Jc2NRGJglC Uje17m0Z41+ovZ5Qv1wL0Bns56ZK61ToWaonOdFwH7KRK3so39aMQvGIu1Sbb8PCaqG5 j4QctHan3vwuKAh0kNRJBIqJk1fVbxsm4aDE+7F0ANEPLcBEZOoFXJ6gGNWtBojB0h4p BM+Vh2valQkb980LkUkUOvJcODCOO2Iv1g6mSSpyMGTce2WIH/bBAvoya4KKYzdNVzkG OMsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si8398820pfi.8.2018.01.08.04.49.36; Mon, 08 Jan 2018 04:49:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757402AbeAHMte (ORCPT + 28 others); Mon, 8 Jan 2018 07:49:34 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:53240 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756379AbeAHMtd (ORCPT ); Mon, 8 Jan 2018 07:49:33 -0500 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 Cc: Yury Norov , Arnd Bergmann , Will Deacon , Mark Rutland , Jonathan Cameron , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 Acked-by: Yury Norov Acked-by: Suzuki K Poulose 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)