From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D4233FFD for ; Wed, 5 Feb 2025 00:00:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738713638; cv=none; b=Efqshwfo4aaSJSqxAocOqlU133sLWwRnJJbUKuXTN4LsPsKKFvDN6zSYbTLiGud9ktzAdaxJXSsPGgAjN6l52/Hlt/OYUVN7d9sq1PAZq6T5L0kDfUi5zyRP0wSU7lZYXjE6MgLCHMrukdiAIWDW+ega3hQ/D4olXDpMScbf/vU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738713638; c=relaxed/simple; bh=4bUW/OLEo2ALx/TpncGtCsLvYOuiCOTA0BybxP3ag6E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qtT5ged3ajqmAzoaWw/ARi/QyzKl8FplVI26Z1ybFtfwj5BUK5wD++viUrBng1BYMFicnZjoU/jYWl1maJZQqQXZMNk7TLi9IQ1O17JtlzE0ac1tJCw1KDlwI9VFqz+AIEcjJ1S8mDwqtrbiNA7x8THKojJ0mxWiyeWmk5tjyfw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=a9d73MEr; arc=none smtp.client-ip=91.218.175.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="a9d73MEr" Date: Wed, 5 Feb 2025 00:00:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1738713618; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YEGeIQ/RCr8VvVfV06i+b8+5DnmNJQ5h/zFNOrFOtFg=; b=a9d73MErLZkqToq5s+8YSzdC0AyZo9DB+BMttxD0hdRmFHTbVhUWGiZHiceUQZ13C6JtEJ WmcuaNSUjlOBaeh875NRSsyTcFEhlKKscQ/r/IF8LDTvGikCumau/trvdxKsMMtYPFgMyN kqYiNeLaAHcxV6r1q2q+9yGGYwcruhc= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Colton Lewis Cc: kvm@vger.kernel.org, Russell King , Catalin Marinas , Will Deacon , Marc Zyngier , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev Subject: Re: [PATCH 2/2] perf: arm_pmuv3: Uninvert dependency between {asm,perf}/arm_pmuv3.h Message-ID: References: <20250204195708.1703531-1-coltonlewis@google.com> <20250204195708.1703531-2-coltonlewis@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250204195708.1703531-2-coltonlewis@google.com> X-Migadu-Flow: FLOW_OUT On Tue, Feb 04, 2025 at 07:57:08PM +0000, Colton Lewis wrote: > perf/arm_pmuv3.h includes asm/arm_pmuv3.h at the bottom of the > file. This counterintiutive decision was presumably made so > asm/arm_pmuv3.h would be included everywhere perf/arm_pmuv3.h was even > though the actual dependency relationship goes the other way because > asm/arm_pmuv3.h depends on the PMEVN_SWITCH macro that was presumably > put there to avoid duplicating it in the asm files for arm and arm64. > > Extract the relevant macro to its own file to avoid this unusual > structure so it may be included in the asm headers without worrying > about ordering issues. > > Signed-off-by: Colton Lewis Is the intention of this change to allow asm/arm_pmuv3.h to be directly included? If yes, what's the issue with using perf/arm_pmuv3.h? We already use definitions from the non-arch header in KVM anyway... -- Thanks, Oliver