From patchwork Thu Mar 10 06:50:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 12775977 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B6C1C433F5 for ; Thu, 10 Mar 2022 06:56:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=JAxAFZ5AB+HY0MOuhKodENktePvoJg+Fyeg7JdF9YLw=; b=qYjBQ/qs9CItPH rE8FOWxwwyhNrm4e22fmx+cWQUfGAHTAdqOO31EFLjmcWZe3uTs7Y1KUz0Xb8l2kH5SYGwgurFl9X sz9R4c922wmwcdErSijwWdd5yTXuMSu1Q2oWMkvQ2llfk2rm2SDyl+Mbo6v296T9rJUgxTPIKdYb3 HednwRxq69C1sipXDtEwc+8iMR1Tic026N+a9nYWFwdv3AkspU6wOn3i25DZlwOSL7GlH6I7R9LLl FixSwFrXwI0bFe5HcPpZQW//p5xPBpP7s1V+eSA6X+LhTL37cbB57w8ma4P1g3ce9MWY1ahiI5BUr R4MsIkdfhBtVPBSZcIBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSCiB-00BfTw-BN; Thu, 10 Mar 2022 06:55:47 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nSCi7-00BfSw-Bb for linux-arm-kernel@lists.infradead.org; Thu, 10 Mar 2022 06:55:45 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220309_225543_577762_F50E636C X-CRM114-Status: UNSURE ( 8.74 ) 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 drivers/perf/marvell_cn10k_ddr_pmu.c:723:21: error: ‘cn10k_ddr_pmu_of_match’ undeclared here (not in a function); did you mean ‘cn10k_ddr_pmu_driver’? .of_match_table = cn10k_ddr_pmu_of_match, ^~~~~~~~~~~~~~~~~~~~~~ Remove the #ifdef around the match table, because CONFIG_OF is always enabled 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_cn10k_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_device *pdev) return 0; } -#ifdef CONFIG_OF static const struct of_device_id cn10k_ddr_pmu_of_match[] = { { .compatible = "marvell,cn10k-ddr-pmu", }, { }, }; MODULE_DEVICE_TABLE(of, cn10k_ddr_pmu_of_match); -#endif static struct platform_driver cn10k_ddr_pmu_driver = { .driver = {