From patchwork Wed Nov 16 19:04:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Besar Wicaksono X-Patchwork-Id: 13045666 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 45585C43219 for ; Wed, 16 Nov 2022 19:07:11 +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=G1jJK31IqraSQLYcuc+DAyjmKA6gRym43Y/ozUt9X4I=; b=G24BbnOekr2XLk I2rPJhzWcG2t90PchHEViLzzDGGaJYKdNX2GymFsQj0A52T/oiVQZr1Bn8WOXyUg189dCMlhmcXT7 0EzhBwpx5OichK5VWP7SWVVQndEMnSCAqzAz6KCyF46rptIb41DmKd+5R4/AwBqa0tnVSGnHp/Smo y1baPrzlroYuTX7k5a77Pjpy9Tbv8e7zNhdvwGAZUK0R+ZMMmB66Dskq/dbzqKyznkKBPA1WdEEsg XvxLvfoOEMEfiMPR6h6zazYqmZco8uFgMwl/E8SRlDLAGMzAEFKSI0yT1Q/eQWvwZFZiuhl/GMENp IJ6lEBKeoNcjJ8phJSlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovNj2-007JGY-N7; Wed, 16 Nov 2022 19:05:32 +0000 Received: from mail-bn8nam11on20600.outbound.protection.outlook.com ([2a01:111:f400:7eae::600] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovNj0-007JFv-2k for linux-arm-kernel@lists.infradead.org; Wed, 16 Nov 2022 19:05:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lZVf28xhgxE3QJes6fC/xPGJKnhe/Ero0KmMprlLwMLYEbKyjh0A0e3rdqniyu37CtO93s2/bELe78SpahzNS0pwxre2p1uuOFIBydNA6Acg75IPx3vwRjzmgJg5Ct8p11QdXotcnB6dJKRpDwtsNXKE452UqwHJfnZTRDXgJ+p5qPaA3xAz5OIcjmycyeM6miawN5kJk99t1dUxQArq8RDV1+0rx58qNIGakM1NRc7kKe4ygjQ8vunJfMxeEooh+ATN7Hq1o3VYdM9nllXN9RnEOF+Re8/F9I0zSyLdletimAuneSxvKrjIQ9/dAsWVfshAgQlSH0hWlni4VSPIWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=r+SV89ez17ISJdVQU7OeoYBfsdskAaJl2aofCLJnnjg=; b=ZQjQdm5CYoUXKzQsjhf+UcuzS8ipMjsojd949bEYCzXc9FD+nf1fwpOtyUn3fssxoCjMoz2qiC9nlf47JZrTPzRzfw4GeS44Ziau2MCSNveSB5/9Gdgbw2HxMj7qRxWlT502Vdj805GgaHUcwA1r5SyNi8B8nOn22d/lypBFsVR3F2IFIno2oyFmD7F4R87Ho6LFYyybZI7AsFPWHhzWuSB5O7PeMQyMkK+UXPvHTFY9MEMkQI7Y/PCV0Hsg9NnFxAyBdrG88cnUA+CjX8uhU2HyVZZTnej1PNFAPf5tA3vVy5ExN7jVxYClG/RmwKuLfLuLjCUhJnEVCf557PPoxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=arm.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r+SV89ez17ISJdVQU7OeoYBfsdskAaJl2aofCLJnnjg=; b=nGLr3ORXwk0Rg08NS9eF2CmFf1HXg7Fqbq62pJXcorkvg3wsD2bh4ja1PRFF0yHaAkSzNlcDOee1zzLX3u6HYHn/SCv+8Al1ZaJTR5F8AzxMDbwXJUeH9GkUFF4aubT5Xydw0M1+kazt1T+3O/Gkp854p6rB5YG8m7rz+1em/aYgfrgOWIsoFbAxOpLMu1zg1TXqLKOt1sCVmOQqs3ENaH711e1bRRRnmrRV1E/OxWrNWoM9LJdZA8ELJeKnK1b/p6iXHrwxIy9akQVf5y+RDph7eAkoNYJLQssaoaRwsdBu5SAvMrkRliKhRkx6UuieP8yvyDpWPUvRUMxjsWqqsg== Received: from BN9PR03CA0676.namprd03.prod.outlook.com (2603:10b6:408:10e::21) by PH0PR12MB5451.namprd12.prod.outlook.com (2603:10b6:510:ee::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.19; Wed, 16 Nov 2022 19:05:25 +0000 Received: from BN8NAM11FT062.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10e:cafe::c9) by BN9PR03CA0676.outlook.office365.com (2603:10b6:408:10e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.17 via Frontend Transport; Wed, 16 Nov 2022 19:05:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT062.mail.protection.outlook.com (10.13.177.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.8 via Frontend Transport; Wed, 16 Nov 2022 19:05:25 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 16 Nov 2022 11:05:11 -0800 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 16 Nov 2022 11:05:11 -0800 Received: from msst-build.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Wed, 16 Nov 2022 11:05:10 -0800 From: Besar Wicaksono To: , , , CC: , , , , , , , , "Besar Wicaksono" Subject: [PATCH] perf: arm_cspmu: Fix build failure on x86_64 Date: Wed, 16 Nov 2022 13:04:55 -0600 Message-ID: <20221116190455.55651-1-bwicaksono@nvidia.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT062:EE_|PH0PR12MB5451:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e34e7fb-ff6b-4065-36ff-08dac80584d6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ck91oTqE/EViz5W5MpD94lgGi8Iu5pdMTRnK+MtLG9U8ijn1m7YAWrTXdSrP2TWQNp1x/Dr8HcrLevtx7eMkHGMXwJmuNNgnr7hh/kT5v1xqVFHqTqtgVJ8RknIEqp/cDi+tOVo+pPjQPk5iAWg2gTuFu77b6q9k/5LEblweQi6y+6wrR/4BCBaZpIi5LPGTiPOo9cp1P9gImfW+uIBteo/8AMcWZflVYTgvW2CGAmTsJavW2mK5gC28L4ZLX1GPQN61prHYhIRQcX9WmYDk4vOu6N+HMlbZiToOJr0kqVUHMK6380rTpj/rhweIgc7Yt0KsdbFPyi5AtFqVianLo2nvaTPbuY2m6J6CX/YXA0OWovbRSproLJzfyxCsKotPnM7BP6JyC1Q0QStQdV3SgBaRMrzO6aiRG2Ft0VSEbCMs8Nz2V5tx4lWhpFeG8Cko+929pWCnZIWxQTdULR1mqfTrpQafiKIphM8hgBo128DnqDplAIU3+H2UO8lGiXTw1ICo3Vabtbl/WQpZ3qkDm9dsyB7EzEMF8fGVaQHnXRnQTn4ESs8MzK/rFWSNbYM3TFBKhnlf9ekT4QZ2Zokra6xeNEUsXCXGS4BFXQqr4xtAS7QrpMvdRrzSN3lAkJwXKG2DdKuMh2KOB4EXDFBwDGos5D6DyVlCRiipbaMH6npwWnXhyy3eZRT4ItDv1BS0uyq1DemdPL38T0+QvvdwZPhH9yStbkECyrmBGIpCddUZrClHH5qRmPod4yw7MJDTJa1hegSJCv0CLMgO2+fLSw== X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(396003)(39860400002)(346002)(451199015)(40470700004)(36840700001)(46966006)(356005)(5660300002)(7636003)(2906002)(40480700001)(8936002)(4744005)(8676002)(70586007)(41300700001)(426003)(83380400001)(47076005)(107886003)(36756003)(6666004)(70206006)(7696005)(336012)(26005)(186003)(1076003)(36860700001)(82310400005)(86362001)(2616005)(478600001)(316002)(110136005)(40460700003)(82740400003)(54906003)(4326008);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2022 19:05:25.3338 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0e34e7fb-ff6b-4065-36ff-08dac80584d6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT062.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB5451 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221116_110530_141212_F931E0FE X-CRM114-Status: GOOD ( 11.47 ) 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 Building on x86_64 allmodconfig failed: | drivers/perf/arm_cspmu/arm_cspmu.c:1114:29: error: implicit | declaration of function 'get_acpi_id_for_cpu' get_acpi_id_for_cpu is a helper function from ARM64. Fix by adding ARM64 dependency. Signed-off-by: Besar Wicaksono Reviewed-by: Suzuki K Poulose --- drivers/perf/arm_cspmu/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 9500fc6e9e6077616c0dea0f7eb33138be94ed0c diff --git a/drivers/perf/arm_cspmu/Kconfig b/drivers/perf/arm_cspmu/Kconfig index 058223bef661..0b316fe69a45 100644 --- a/drivers/perf/arm_cspmu/Kconfig +++ b/drivers/perf/arm_cspmu/Kconfig @@ -4,7 +4,7 @@ config ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU tristate "ARM Coresight Architecture PMU" - depends on ACPI + depends on ARM64 && ACPI depends on ACPI_APMT || COMPILE_TEST help Provides support for performance monitoring unit (PMU) devices