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) {