Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1778193rwb; Thu, 17 Nov 2022 01:41:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jl7zZ7wzOIc8ZpBR/kprjYDLmr0LrSQDYSYZvwaJ+W7sf/5t0bP1AO0+9JtYzWfg/tpFk X-Received: by 2002:a17:906:c24d:b0:7ac:2e16:a8d2 with SMTP id bl13-20020a170906c24d00b007ac2e16a8d2mr1421243ejb.584.1668678080039; Thu, 17 Nov 2022 01:41:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668678080; cv=none; d=google.com; s=arc-20160816; b=0QDFeToM5HqvtI2kQuHWJc1rasPY+M+9Cp5zpR7xhiT0t9N8SknQJtRjCd8kten/5Q c1stsRp3xuDz61yEsEKWXyfEHC6OPszT9IF7rmMeYU2OS3FlUviSahGSt+2+dwLQ4MBL LB7btwd9b8PhCdwHwWLqXgp12jfUuV4N4AVtCM2x16p6WsTLphtC918jf19phqANU0Dt E2+oXvFa1+4JYIRGrI1u3L5X7L8QTLSM9q59tVACCygTzoqbKDwtwmzz0B5xTm0F9cOj rLFxZWA0UIYp1NSJmk9ouHpNLgF5lrhs6yoDTWMjAs1JuEua52z83rP72B4z2GfovTzB XBQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=irRTTyEtG41dFTGX8a3LynfXhds9oG2kjLfZ8Lygc9M=; b=xgi3ulvVclmCY1B0aGxrXYJ+wlgvpZNTVrnuSyXRPUoNchFyT6wixpIEljJg4zvrAL VlJuOvsyK5Tu3Y2Zk91Zj+25K9+SU4ArDS8nYY53v3RD01wWJKTXSOw0zP5s/014D36j X2UvfMDBrsy85M/YhZALfzVctIgPb/HchKf9WvdANIgVQjGkpucPRMHhU8A5zgL+mOV9 s4YqzEQDMrsxkaOxST1n/oWZ0FA/g3hBgv+ylR9HtKWVXhiqA0nkZWol9L74RSqWVmOM oQYlnAKrlO0ReNN3CdarxoyZPhjt2hrEKDrf9fMHwFRROTU5wDPeU15/e0lKap1d4+as yC5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020aa7d5cb000000b00463699c95ddsi468301eds.357.2022.11.17.01.40.58; Thu, 17 Nov 2022 01:41:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239805AbiKQJSU (ORCPT + 92 others); Thu, 17 Nov 2022 04:18:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234715AbiKQJST (ORCPT ); Thu, 17 Nov 2022 04:18:19 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F97F6B388; Thu, 17 Nov 2022 01:18:18 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 061A4D6E; Thu, 17 Nov 2022 01:18:24 -0800 (PST) Received: from [10.57.40.76] (unknown [10.57.40.76]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C23443F663; Thu, 17 Nov 2022 01:18:15 -0800 (PST) Message-ID: <5bdfe519-e6fe-7fed-2731-40d490e1f9bb@arm.com> Date: Thu, 17 Nov 2022 09:18:14 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] perf: arm_cspmu: Fix build failure on x86_64 To: Besar Wicaksono , catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, sfr@canb.auug.org.au, treding@nvidia.com, jonathanh@nvidia.com, vsethi@nvidia.com, ywan@nvidia.com References: <20221116190455.55651-1-bwicaksono@nvidia.com> From: Suzuki K Poulose In-Reply-To: <20221116190455.55651-1-bwicaksono@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/11/2022 19:04, Besar Wicaksono wrote: > 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 nit: Not sure if we have a stable commit id to mark "fixes". May be that is not needed until it hits upstream. Reviewed-by: Suzuki K Poulose > --- > drivers/perf/arm_cspmu/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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 > > base-commit: 9500fc6e9e6077616c0dea0f7eb33138be94ed0c