Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4500989rwl; Tue, 28 Mar 2023 07:46:58 -0700 (PDT) X-Google-Smtp-Source: AK7set+8xGqaqbAvEzbocC73zoy7hZ4iPx1oBFvIQlpk4Hsc6mXG22V7qXQVa4c6UXzMwcbZW4pm X-Received: by 2002:a05:6a20:1aaf:b0:da:53ca:8f26 with SMTP id ci47-20020a056a201aaf00b000da53ca8f26mr12061696pzb.30.1680014818060; Tue, 28 Mar 2023 07:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680014818; cv=none; d=google.com; s=arc-20160816; b=BfMiL67vbnvST8a7RIlJSMhMLM40W2z3gx44fTBQufJFRVnSrghKS4/5tMoKUXKMOR xFHJoSYFsPHM032df768134f8Vzm4P4xGTxygML04f1zkPdnHzhxLvakWUtHOpNEWIHw Xinlp3VY/aE3PJmOFrxRmBdSahHgC//p9ZRAmedfTePBYAabDkGOl1r5oBaTs41ZQ0/G Y083XP81VA5hB5pwe97T6Buf4WSz+AIAPSiKbtchdPkAcGv+J8mHl5OuFTPEbNvXRrWh kMMl26QvN9zIfrAoqMK/j6XoBLxuHV1TOUM3dk2X6txfw8DZB+AKQB94/g9dnhmOjdR6 PZXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wW9W9CkqG+KM5lBkJY8muLRSg60OOyq9sP3UyU5/ri4=; b=DQoe6kLDMTllLMGPYE3O4Pi8qwIMym09fmY1i4MiGxR04UQCHJrYrLIa/rKkVuZZtz c31VzYezrATRqPL4TzVOT7JdILUl0BxWX4K/nA0pqqMy8V7fxizj/AW+DrbWMXGjkrDs uUuwi95qzY49G5mmWczmYltQKl+eSb6caWjxXJj6lLH9hc/iLp+M2uK3YVg4gwlAiQe5 IGZbL66/dLClLIcXQypI/T/ucgLoWdgelQ9E7yv6w92nLvc5I7tZVXGmrfmgJl5bllzA q1wOgtcAGYY1dCpwMa9Zi3i+lO9JKJ6b2+8UPaHUPlTwB/Fs3074RItjq/LWsan85D2o Q6og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SHBSwfpj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a63e843000000b00513234112a5si10424188pgk.881.2023.03.28.07.46.45; Tue, 28 Mar 2023 07:46:58 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SHBSwfpj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232875AbjC1OoR (ORCPT + 99 others); Tue, 28 Mar 2023 10:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231432AbjC1OoP (ORCPT ); Tue, 28 Mar 2023 10:44:15 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D051BBA8 for ; Tue, 28 Mar 2023 07:44:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 4C6D9CE1C78 for ; Tue, 28 Mar 2023 14:44:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 776CFC433D2; Tue, 28 Mar 2023 14:44:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680014651; bh=GjbFF5kxNZ3VUOnYj3ADIwJWyTgKZ4fW4nbBVLgpyPU=; h=From:To:Cc:Subject:Date:From; b=SHBSwfpjaX4oP6cW5QVDvPrlYqVd4uHOXupPZOUUTkB0o8HtGQtLjhyR6AbEcoOK0 tFwOeiVZkrYmbil21063Xaefm/LQ/zmjFF6ik6SUF7nRcKY6F2IAPKS1VZQ8NGo39X u3ka72zPzjlYEC9cKgAsiMnk20ZONUqNLH2tFrSZ2H7s6rKQEaBKLgMvyvhl0/tdyP ngfm8hnIpf9g8xTBVlJugDT7vM0H49dR4nWNAd3eYspE4KuwW5VXM4QzOYEgk33fiS 3Y1u73HvQMr0CVjY0c7eD7UM6C9yCpDbGJaJGG1yN9Ru+UquPK7L2BPVZoYin4e2cr PyJtvK4ColtEw== From: Arnd Bergmann To: Zaid Al-Bassam , Marc Zyngier , Will Deacon Cc: Arnd Bergmann , Russell King , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: mach-virt: fix PMUv3 dependendency Date: Tue, 28 Mar 2023 16:43:44 +0200 Message-Id: <20230328144405.1527555-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 From: Arnd Bergmann Selecting a ARM_PMUV3 from a platform option breaks the build when CONFIG_ARM_PMU is not already set: WARNING: unmet direct dependencies detected for ARM_PMUV3 Depends on [n]: PERF_EVENTS [=y] && HW_PERF_EVENTS [=n] && (ARM [=y] && CPU_V7 [=y] || ARM64) Selected by [y]: - ARCH_VIRT [=y] && ARCH_MULTI_V7 [=y] && PERF_EVENTS [=y] drivers/perf/arm_pmuv3.c:48:9: error: 'PERF_MAP_ALL_UNSUPPORTED' undeclared here (not in a function) 48 | PERF_MAP_ALL_UNSUPPORTED, | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/perf/arm_pmuv3.c:63:9: error: 'PERF_CACHE_MAP_ALL_UNSUPPORTED' undeclared here (not in a function) 63 | PERF_CACHE_MAP_ALL_UNSUPPORTED, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/perf/arm_pmuv3.c:65:10: error: implicit declaration of function 'C' [-Werror=implicit-function-declaration] 65 | [C(L1D)][C(OP_READ)][C(RESULT_ACCESS)] = ARMV8_PMUV3_PERFCTR_L1D_CACHE, Fixes: 3b16f6268e66 ("ARM: mach-virt: Select PMUv3 driver by default") Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e8ccacb3653b..700458c7cace 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -397,7 +397,7 @@ config ARCH_VIRT select ARM_GIC_V3 select ARM_GIC_V3_ITS if PCI select ARM_PSCI - select ARM_PMUV3 if PERF_EVENTS + select ARM_PMUV3 if PERF_EVENTS && ARM_PMU select HAVE_ARM_ARCH_TIMER config ARCH_AIROHA -- 2.39.2