Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3532313imm; Tue, 29 May 2018 08:49:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpgJhjan//Knk0bU4rxxkQuin4g5rHJyfUgvXxdrUOWny9TTP4Mtde4ZGa+CTjtS9TePSAY X-Received: by 2002:a17:902:369:: with SMTP id 96-v6mr18314566pld.64.1527608959703; Tue, 29 May 2018 08:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527608959; cv=none; d=google.com; s=arc-20160816; b=DwzpdHdpTMMqc8lQvU3AF5v+RRJ+wWpQnehCDzprfEIeMwGEZJr5+y12yyJLavLjws TG+deVJ1QhFr4DwDnvI+OVcp1Tk5g/263DD6Mbhiv65D9Uc0vGWuGwqGa2HpatQP/ZvV REe31xsLRwsMpM8jEToW4G7x8ZmVzrphlkPvgiDmE7rhYbsSoTE8bjjZzk4ZDj+Z6Lq1 9g1Zi0ElMmQHHOIN40zsVPoidcWKW7XKIJL+uT5Y7A5O5XduwTfrh/WUNravXVmaWB/V NJXthjIAJE8tlmn2MK4BFJVUtnABCkWiH3VCewG92zGq4/ZRZ757U71dnYZF9NLBAuKf ePHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=aiceazM6O0AqEIsCINVGekZ0muaa66JzFqRiURWJmf0=; b=1ABCE0HL46j1luK/tQo7Jgw/y90Sda9dsgx/KTTEshTUnXnPRJR0qJf2p/MmvQoIck uFEPRvZv/C0FPsvHOZOmmaX1ayDESTNMkTN0XYfPSS9PLBaai9/ZvSqW/fVN9pBtBC2u aabSCtQr3kAha+GdlsInpsqNFSaBLCq6LR51vFx2CM9UD65FTYNc+m+Peq0wD8NT0J4V JfdxEjS0I2JSyVa4svKKFDAV5bmYtccYGWmgEUjH0miLptxmWOhpGZ77/7mXLP5Anq+8 9GbuI11SsIlga4z/p5gjtBJncIHibMJCNnci85Of2gUdZNMoS+8qzKHxKmbXQn3R2l4f XCxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a69-v6si33202352pli.391.2018.05.29.08.49.06; Tue, 29 May 2018 08:49:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965200AbeE2PrP (ORCPT + 99 others); Tue, 29 May 2018 11:47:15 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:43656 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936829AbeE2PrJ (ORCPT ); Tue, 29 May 2018 11:47:09 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4C76B80D; Tue, 29 May 2018 08:47:09 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1D93F3F25D; Tue, 29 May 2018 08:47:09 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id BBD541AE4DC6; Tue, 29 May 2018 16:47:38 +0100 (BST) Date: Tue, 29 May 2018 16:47:38 +0100 From: Will Deacon To: Russell King - ARM Linux Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, nicolas.pitre@linaro.org, robin.murphy@arm.com Subject: Re: [PATCH] ARM: mcpm, perf/arm-cci: export mcpm_is_available Message-ID: <20180529154738.GL17159@arm.com> References: <20180528154448.2494709-1-arnd@arndb.de> <20180529153013.GH17159@arm.com> <20180529153324.GL17671@n2100.armlinux.org.uk> <20180529154120.GI17159@arm.com> <20180529154251.GM17671@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180529154251.GM17671@n2100.armlinux.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 04:42:51PM +0100, Russell King - ARM Linux wrote: > On Tue, May 29, 2018 at 04:41:20PM +0100, Will Deacon wrote: > > Hi Russell, > > > > On Tue, May 29, 2018 at 04:33:24PM +0100, Russell King - ARM Linux wrote: > > > On Tue, May 29, 2018 at 04:30:14PM +0100, Will Deacon wrote: > > > > Hi Arnd, Russell, [+Nico and Robin] > > > > > > > > On Mon, May 28, 2018 at 05:44:36PM +0200, Arnd Bergmann wrote: > > > > > Now that the ARM CCI PMU driver can be built as a loadable module, > > > > > we get a link failure when MCPM is enabled: > > > > > > > > > > ERROR: "mcpm_is_available" [drivers/perf/arm-cci.ko] undefined! > > > > > > > > > > The simplest fix is to export that helper function. > > > > > > > > > > Fixes: 8b0c93c20ef7 ("perf/arm-cci: Allow building as a module") > > > > > Signed-off-by: Arnd Bergmann > > > > > --- > > > > > The patch that caused this is currently part of the arm-perf/for-next/perf > > > > > branch, it would be good to have the fix there as well. > > > > > --- > > > > > arch/arm/common/mcpm_entry.c | 2 ++ > > > > > 1 file changed, 2 insertions(+) > > > > > > > > I'm happy to take this via the arm perf tree if others are ok with that. > > > > Alternatively, I can revert the offending commit if there are objections > > > > to exporting the symbol. > > > > > > > > Russell: do you any preference? > > > > > > As it claims to fix 8b0c93c20ef7, which I don't have, I can't take this > > > patch. Do we know which tree has this? > > > > Yes, sorry, it's in my for-next/perf branch: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/commit/?h=for-next/perf&id=8b0c93c20ef78f15d8b760964ff79bda7f68c610 > > > > which is now in -next. > > > > I'm happy to take the mcpm patch on top with your ack, but if you have > > conflicting changes (or would prefer not to export the symbol to modules) > > then I can just revert the patch in my tree for now. > > I have no changes to that file, so: > > Acked-by: Russell King Thanks, I've picked up the fix from Arnd with your Ack and will push out this evening. Will