From patchwork Tue May 11 12:27:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jay Fang X-Patchwork-Id: 12250917 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02BE9C433B4 for ; Tue, 11 May 2021 13:25:31 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B0BC461288 for ; Tue, 11 May 2021 13:25:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0BC461288 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vL9PrLze15loTsyWEVT3/je8ppmIZ0uBWBAJLFAI7+U=; b=BJJm1fBvSyM7m3BmmB4Iyrp3C yJuK0bwuXj6JBaqaGr0PnRrLCiCVkvllL4YUGzxNDF2cpZbNbj6wMdieGTcOwpr5156UseWULNltA NelmS5v2fg3Uy1vZafe2DxN5EFIqOsHxQ//TLGbgGQQi/KBj9xvPF+hqMZuoi9cAhGVwn9sywR7wj NRdO78pGKxg4kd5/MMjkPVJTjNoB8zRDroLHqgwwY4Ea7/rJIzpIhdgXyY0+oZco5WEyVN9Q1DcKB RLub0egcNqIjngsI/+B4n6HE+uqgJT35YZdWZ6k5eaTdprbcM96f9PhXRieQtTsejrc7gUAlufcTY kHsewub5Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgSMN-000570-MW; Tue, 11 May 2021 13:23:39 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgRUP-00HNy0-Mk for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 12:27:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=jd6hHohT6CsD+7Ijbmx7ILfJXasQZpBRo9udu+Xk4yc=; b=Rw6mwDNDKs3AFjLCwUBylYCSWx Sa3Tgh9vJAfnTSHTNsbtwqEOce9akv8N5YLdC1WNxXqTUSp/eWZMPAkyUmOb5jnQkGh1XywBDxMHp Aee6Xs6exe1VG5PU70vnNpOTJq+X1x1WnU38AuDCD0v6isaFoa6jMrKltuf/QlpvMO2GrVC4KKMFm A9B7YhSy8JMyOaLFsurfem9tVf4nvjxpfCl1x74NZOIQfVhRGU7e8eyYMPBPTvIF0+9TcABENMl7B lzK4mXvk0/8Xkrpmocoi3lopJ6gHJjH4KbHONiVsIt7Y4Pqa0UW+CRYx0qsnGK5A6gmCHE3Lh6/O5 Qo1uKEVg==; Received: from szxga04-in.huawei.com ([45.249.212.190]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgRUM-009ZEx-Vm for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 12:27:52 +0000 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FfcYL5R8VzmgHV; Tue, 11 May 2021 20:24:22 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 20:27:35 +0800 From: Jay Fang To: , CC: , , , Subject: [PATCH 1/4] drivers/perf: arm_spe_pmu: Fix some coding style issues Date: Tue, 11 May 2021 20:27:31 +0800 Message-ID: <1620736054-58412-2-git-send-email-f.fangjian@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620736054-58412-1-git-send-email-f.fangjian@huawei.com> References: <1620736054-58412-1-git-send-email-f.fangjian@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_052751_210540_FC2F0BAE X-CRM114-Status: GOOD ( 10.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Junhao He Fix some coding style issues reported by checkpatch.pl, including following types: WARNING: void function return statements are not generally useful WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Junhao He Signed-off-by: Jay Fang --- drivers/perf/arm_spe_pmu.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c index 8a1e86a..e3711cb 100644 --- a/drivers/perf/arm_spe_pmu.c +++ b/drivers/perf/arm_spe_pmu.c @@ -1044,7 +1044,6 @@ static void __arm_spe_pmu_dev_probe(void *info) spe_pmu->max_record_sz, spe_pmu->align, spe_pmu->features); spe_pmu->features |= SPE_PMU_FEAT_DEV_PROBED; - return; } static void __arm_spe_pmu_reset_local(void) @@ -1190,10 +1189,8 @@ static int arm_spe_pmu_device_probe(struct platform_device *pdev) } spe_pmu = devm_kzalloc(dev, sizeof(*spe_pmu), GFP_KERNEL); - if (!spe_pmu) { - dev_err(dev, "failed to allocate spe_pmu\n"); + if (!spe_pmu) return -ENOMEM; - } spe_pmu->handle = alloc_percpu(typeof(*spe_pmu->handle)); if (!spe_pmu->handle) From patchwork Tue May 11 12:27:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jay Fang X-Patchwork-Id: 12250913 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08F6AC433ED for ; Tue, 11 May 2021 13:24:26 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A726161288 for ; Tue, 11 May 2021 13:24:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A726161288 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WHz1djMWHUw1bQS//ZbJwM+aWJr28NhaRuEWZDJiJWo=; b=itHrdHfxNgHlmOXFKIdYpSO6D Tp08lMawLbXgFUv1BhKP4n4LzXsPEPx0Md1hLGxOTwcV4K5hjgh3dwie1Kztz2lWzqTis82KhW2Uy g7g/4uIhiDiV40loUb+67J9SJxUs57vkVpoYqUuLRmKmlOBSJCThok1tRJeT+tnZ+5mYtTtzCKfDk XL8eV+dah+DSe+YAFHdJ2dfH+fIzInp5CysuCWtYWHL6ZAC9WbOodaMC4KosWqm6MNp+WkqWXtNHR azpjySxW7BBceHe+trhsC6/7M1aZa8oQTalc4dnGF24y1shVfKeUH3rgFCXadjJzh8TUtSDIOh5Yy MJ75LuBeg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgSLc-0004eR-Dr; Tue, 11 May 2021 13:22:52 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgRUP-00HNxm-8s for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 12:27:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=RSn/rVu+hw3bfk6UJ8Xi9NzZRajMt0TjUsMhzmpjC+8=; b=0Am35wdoKkmzv3SwX6/4u7i5Ys /DDWnQdGWPwi4XyldKpqAd6ghIeTNxJYLG2ihc4OjgOGIVgO2XX0g1JX8elHLMn44/xwZXLmZo+BS +1YVuiIk4LYtxlQIshRu1ji3N4l38MaTj9OWYEPVTTKw92TtBDgz9SaYGxieT+3AT+UO5Y4yHyNRv 6+nz5pZPDkc8AH9FOtUgSOXnqTVgsZXmXKdHp21/AGb9uCFuBnhtL+KEixHXWvnryWtroOsWCEpZ1 g8/Xe7vFHkSaSwY1C4dHSzSrL5h/xir71sYco+kRrjqRbjJEsGoz6b7wQIUHnjc2aX0o2Zkv2nC2B 1JrvuxNg==; Received: from szxga04-in.huawei.com ([45.249.212.190]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgRUM-009ZEw-C8 for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 12:27:51 +0000 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FfcYL5dPFzmgHW; Tue, 11 May 2021 20:24:22 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 20:27:36 +0800 From: Jay Fang To: , CC: , , , Subject: [PATCH 2/4] drivers/perf: arm_pmu: Fix some coding style issues Date: Tue, 11 May 2021 20:27:32 +0800 Message-ID: <1620736054-58412-3-git-send-email-f.fangjian@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620736054-58412-1-git-send-email-f.fangjian@huawei.com> References: <1620736054-58412-1-git-send-email-f.fangjian@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_052750_598771_0198A347 X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Junhao He Fix some coding style issues reported by checkpatch.pl, including following types: ERROR: spaces required around that '=' (ctx:VxW) WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Junhao He Signed-off-by: Jay Fang --- drivers/perf/arm_pmu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c index d4f7f1f..e57b348 100644 --- a/drivers/perf/arm_pmu.c +++ b/drivers/perf/arm_pmu.c @@ -670,7 +670,7 @@ int armpmu_request_irq(int irq, int cpu) &cpu_armpmu); irq_ops = &percpu_pmuirq_ops; } else { - has_nmi= true; + has_nmi = true; irq_ops = &percpu_pmunmi_ops; } } else { @@ -869,10 +869,8 @@ static struct arm_pmu *__armpmu_alloc(gfp_t flags) int cpu; pmu = kzalloc(sizeof(*pmu), flags); - if (!pmu) { - pr_info("failed to allocate PMU device!\n"); + if (!pmu) goto out; - } pmu->hw_events = alloc_percpu_gfp(struct pmu_hw_events, flags); if (!pmu->hw_events) { From patchwork Tue May 11 12:27:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jay Fang X-Patchwork-Id: 12250919 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2794C433ED for ; Tue, 11 May 2021 13:25:50 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4F2DF615FF for ; Tue, 11 May 2021 13:25:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4F2DF615FF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rL0j9xzoscd1urONiAZwShYU8ZrgSJJ3oT+fdjFtffU=; b=H/ixkhcZNrjXQIIVJi+85oBXJ L9H8VwtVTFVwtxEvwhAjO5v9zrJcJ3rT/D72fdm1TCGmsLnDSYVD8QQDS059t1hFA5c7FDFxsX3vA ikOexJKvOnQHi58dfZ+klxHQ9uy+4ojACzzEUEdqI6pBKI/9Qvyfx3BsFQA3r6Lpx3rmRnAskscnA GceaBlhrSQv3D14z55+brwGyJI3N0u9J04J9VCfVqJUtJflD6IpSl7aY9yaU/rk8MDYeXjvf+95uh jSZPJKCr/F/GsCeehsBdkCNsvujeM6paso+4jgjRiPEIWUJElljV6OeSLYneUiquQuhHFohHvTF6E PE/PR3ItQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgSMm-0005Ic-AH; Tue, 11 May 2021 13:24:06 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgRUQ-00HNyJ-6E for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 12:27:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1c0sOrn3+440gcu6RK/XyK+HmpdzJl//kWEvve4klHI=; b=0J0v7kXHXuSf6P28rC3DNvtmHb 7ruJsqaNbGJrXaTpR0m9RkBRRCtapgL1ulu05434JVkCXrPBMK7rWw0KvgPfR8NbFFpaCMLJXMyXs 2nIFYLAUV9nNxhrwLVqvlI1CRZLSb8g697w648yd2PxBRzuPAcfcm6SxkmSRsDLCGz0/OqxKJ7qcb YlddsQ0kJIWlcMUTlfQYPeEPjVM2dLQJYozCdbF3FEOjydQ61Zu2Mo6ryCJzsKDQtdPPgyciD5S05 mcNafKKyVY0j+H0HuSXbwe3LApTzqTxl7NHytoVDT3tqHc8dGptU+KfMxjvp9v0lInQYpHqE+5Rg4 47euOt+A==; Received: from szxga04-in.huawei.com ([45.249.212.190]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgRUN-009ZEz-0G for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 12:27:52 +0000 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FfcYL4qSKzmg8r; Tue, 11 May 2021 20:24:22 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 20:27:36 +0800 From: Jay Fang To: , CC: , , , Subject: [PATCH 3/4] drivers/perf: arm-cmn: Add space after ',' Date: Tue, 11 May 2021 20:27:33 +0800 Message-ID: <1620736054-58412-4-git-send-email-f.fangjian@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620736054-58412-1-git-send-email-f.fangjian@huawei.com> References: <1620736054-58412-1-git-send-email-f.fangjian@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_052751_230917_15EF434B X-CRM114-Status: UNSURE ( 9.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Junhao He Fix a warning from checkpatch.pl. ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Junhao He Signed-off-by: Jay Fang --- drivers/perf/arm-cmn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/perf/arm-cmn.c b/drivers/perf/arm-cmn.c index 56a5c35..d5b2372 100644 --- a/drivers/perf/arm-cmn.c +++ b/drivers/perf/arm-cmn.c @@ -31,7 +31,7 @@ #define CMN_CI_CHILD_COUNT GENMASK_ULL(15, 0) #define CMN_CI_CHILD_PTR_OFFSET GENMASK_ULL(31, 16) -#define CMN_CHILD_NODE_ADDR GENMASK(27,0) +#define CMN_CHILD_NODE_ADDR GENMASK(27, 0) #define CMN_CHILD_NODE_EXTERNAL BIT(31) #define CMN_ADDR_NODE_PTR GENMASK(27, 14) From patchwork Tue May 11 12:27:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jay Fang X-Patchwork-Id: 12250911 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61CE6C433ED for ; Tue, 11 May 2021 13:24:08 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0726561288 for ; Tue, 11 May 2021 13:24:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0726561288 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DbHlPoiEG/VL8It0yDLRXycLJxhHVRiAcGYKwDeR0nc=; b=VgflILwmlNitPm0PcyMT+ia0G PCXo2ydQhRK959q8zBSySX6qqH87tVLj9SASdTedSE7sCz49Nxj0L/4lQKZQfUseA8RDisj78vnva hqR2AygowcVbtzyxzg6KoKauLxriDfW1pkMF2uELNgsCiiYco5uXURv+6pB2kIrfSVExeoDtVBCRg cTl2z5FMUESgDleciwN5+AUacgv3AVMQx3X5CWi/csKbmrtEtc/NT9K8juZlz/NOvRPoeCyWenzAq iLaXBkmzqrEDXMhftNj9Wk7r0YMfI/WxjBzf1GBKb7fOLQHd+Kfv0xPvpu6ND8pTeJ2Qu7j4mtAfI cRL1Zly1w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgSLC-0004Vs-F3; Tue, 11 May 2021 13:22:26 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgRUO-00HNxL-2A for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 12:27:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Qmj/QIT8voDQzNxOuJCySIlP+qFzc+69xEjB6Nuz50k=; b=AbtOVIZbXGTKPtsRA53cfh8pd3 eDM7GPZ3Xd1dWFcypu+HcriNpGSQyoz0ZJKpIGTVPT3IxnntsygCd2k4HGeVDUfUrvCae1KnDr2ZO p+aGYFHxfIJM3v3mQhyULtdiP3J++PqGmdqYyy4+Aks4pd3g3P5NNiU7UIHP03fh0kCOp7KyczblC MatrTtEkAcO/v8GuAIawUtWjcVI1d9+We7tWzyWfBRWw6VY5S9WGto4VSguyIa5TGheiAqU4N1FaE 2XQJIL/r5dPQoU0o/MquLfYr0iDd+NxmIJMKugLhPQ87eJN2A2HbahHtCJraD5VbpiVoq7EvJphaj rNz4AVgg==; Received: from szxga04-in.huawei.com ([45.249.212.190]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgRUL-009ZEv-B9 for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 12:27:50 +0000 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FfcYL5DQmzmgHN; Tue, 11 May 2021 20:24:22 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 20:27:37 +0800 From: Jay Fang To: , CC: , , , Subject: [PATCH 4/4] drivers/perf: arm-cci: Fix checkpatch spacing error Date: Tue, 11 May 2021 20:27:34 +0800 Message-ID: <1620736054-58412-5-git-send-email-f.fangjian@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620736054-58412-1-git-send-email-f.fangjian@huawei.com> References: <1620736054-58412-1-git-send-email-f.fangjian@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_052749_575852_AA3F43F0 X-CRM114-Status: GOOD ( 11.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Junhao He Fix some coding style issues reported by checkpatch.pl, including following types: ERROR: need consistent spacing around '-' (ctx:WxV) ERROR: space required before the open parenthesis '(' Signed-off-by: Junhao He Signed-off-by: Jay Fang --- drivers/perf/arm-cci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/perf/arm-cci.c b/drivers/perf/arm-cci.c index 666d8a9..54aca3a6 100644 --- a/drivers/perf/arm-cci.c +++ b/drivers/perf/arm-cci.c @@ -37,7 +37,7 @@ #define CCI_PMU_CNTR_SIZE(model) ((model)->cntr_size) #define CCI_PMU_CNTR_BASE(model, idx) ((idx) * CCI_PMU_CNTR_SIZE(model)) -#define CCI_PMU_CNTR_MASK ((1ULL << 32) -1) +#define CCI_PMU_CNTR_MASK ((1ULL << 32) - 1) #define CCI_PMU_CNTR_LAST(cci_pmu) (cci_pmu->num_cntrs - 1) #define CCI_PMU_MAX_HW_CNTRS(model) \ @@ -806,7 +806,7 @@ static int pmu_get_event_idx(struct cci_pmu_hw_events *hw, struct perf_event *ev return cci_pmu->model->get_event_idx(cci_pmu, hw, cci_event); /* Generic code to find an unused idx from the mask */ - for(idx = 0; idx <= CCI_PMU_CNTR_LAST(cci_pmu); idx++) + for (idx = 0; idx <= CCI_PMU_CNTR_LAST(cci_pmu); idx++) if (!test_and_set_bit(idx, hw->used_mask)) return idx;