From nobody Tue Jun 23 07:08:45 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7E15C433F5 for ; Thu, 10 Mar 2022 06:55:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239925AbiCJG4o (ORCPT ); Thu, 10 Mar 2022 01:56:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236820AbiCJG4m (ORCPT ); Thu, 10 Mar 2022 01:56:42 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E4D512F146 for ; Wed, 9 Mar 2022 22:55:41 -0800 (PST) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4KDfqx2c5yz9sZt; Thu, 10 Mar 2022 14:51:57 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 10 Mar 2022 14:55:39 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH v2 -next] perf/marvell: cn10k Fix build error without CONFIG_OF Date: Thu, 10 Mar 2022 14:50:45 +0800 Message-ID: <20220310065045.24772-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/perf/marvell_cn10k_ddr_pmu.c:723:21: error: =E2=80=98cn10k_ddr_pmu_= of_match=E2=80=99 undeclared here (not in a function); did you mean =E2=80= =98cn10k_ddr_pmu_driver=E2=80=99? .of_match_table =3D cn10k_ddr_pmu_of_match, ^~~~~~~~~~~~~~~~~~~~~~ Remove the #ifdef around the match table, because CONFIG_OF is always enabl= ed on arm64. Fixes: 7cf83e222bce ("perf/marvell: CN10k DDR performance monitor support") Signed-off-by: YueHaibing Reviewed-by: Arnd Bergmann --- v2: Remove the #ifdef macro as Arnd suggested --- drivers/perf/marvell_cn10k_ddr_pmu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/perf/marvell_cn10k_ddr_pmu.c b/drivers/perf/marvell_cn= 10k_ddr_pmu.c index 7f3146e71f99..bef0cee3a46a 100644 --- a/drivers/perf/marvell_cn10k_ddr_pmu.c +++ b/drivers/perf/marvell_cn10k_ddr_pmu.c @@ -709,13 +709,11 @@ static int cn10k_ddr_perf_remove(struct platform_devi= ce *pdev) return 0; } =20 -#ifdef CONFIG_OF static const struct of_device_id cn10k_ddr_pmu_of_match[] =3D { { .compatible =3D "marvell,cn10k-ddr-pmu", }, { }, }; MODULE_DEVICE_TABLE(of, cn10k_ddr_pmu_of_match); -#endif =20 static struct platform_driver cn10k_ddr_pmu_driver =3D { .driver =3D { --=20 2.17.1