Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3515158imm; Tue, 29 May 2018 08:31:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJTVo/M6Fq4ioZdamrA71+wF4QBMTgtrEBTi0yFwOerAY+f9dYxttsgHORX8XmHgbEytmbZ X-Received: by 2002:a62:fc8d:: with SMTP id e135-v6mr12880834pfh.208.1527607886264; Tue, 29 May 2018 08:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527607886; cv=none; d=google.com; s=arc-20160816; b=jwvu7Cgv8Ko4KgvBrSfKMjfL1841Y5muYmQJrVe/mFYnB8W/nvsOYo8RGMUpJZy/wx lTtRdh8Gd6hIRV+tYRHrbHPBPfWp+F0doUaO3gr9P1smSEkips1NVAMVQhLsfOX6v63o GlT1R6qVl0jg9u5O3vfUt+Pm6usui4wMM8BQ3aEi+wbZXIabrxSu+B8ByPAWUYovP2Q/ e6OTEfiXGefelaFk42uZI9B74PdXGJJTZZyAFnRIz1qchXr8/8qOwVik1KN5yzsCVgyk U/9a8+VdKgn5FY0dzvCMKS56NwUw8xMRwHXPvcCd+iI5FJLbMknu2V6Asv6FMMSA9f7T UFXw== 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=q8pYKkUQ0kTS0fs+Z0Plc0YA3yUWHPn32FK9QwztPNM=; b=rcfpc8emqDb+/A3ZCieYxKWGvqilw3bmYdsYS0nekJABSZ1L1I798rdI3tCKnEh37k Abq8hOlJ19r1jIHgrv61clkYYObT0Suz6n39WqnQq2bVezoxSAuCg+Y7ZxVkKf3WO5wX 5RYe80jQWChm7+QsPUc/S60PiS8qivPKqKOng19d+dVZM4eJQQDZvG+6cR2eiJhuNNeO AxeYJhpepmUmbwQ8Gi4U3KxdVFKjbDpbIck6Cr9z++y7KU5ocG8v1vziULK/K68/5HLM 0EEFmO9gNvti+8IeZlj0x53pjrl6E4HlSuGPMAibXrfjWxa47fh9O7lQiNKjTFumLoh8 2obA== 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 c10-v6si26784400pge.596.2018.05.29.08.31.12; Tue, 29 May 2018 08:31:26 -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 S935543AbeE2P3v (ORCPT + 99 others); Tue, 29 May 2018 11:29:51 -0400 Received: from foss.arm.com ([217.140.101.70]:43024 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935003AbeE2P3o (ORCPT ); Tue, 29 May 2018 11:29:44 -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 A033780D; Tue, 29 May 2018 08:29:44 -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 710E53F25D; Tue, 29 May 2018 08:29:44 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 194941AE4DC6; Tue, 29 May 2018 16:30:14 +0100 (BST) Date: Tue, 29 May 2018 16:30:14 +0100 From: Will Deacon To: Arnd Bergmann , linux@armlinux.org.uk Cc: 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: <20180529153013.GH17159@arm.com> References: <20180528154448.2494709-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180528154448.2494709-1-arnd@arndb.de> 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 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? Thanks, Will > diff --git a/arch/arm/common/mcpm_entry.c b/arch/arm/common/mcpm_entry.c > index ed9e87ddbb06..037a4479b8c3 100644 > --- a/arch/arm/common/mcpm_entry.c > +++ b/arch/arm/common/mcpm_entry.c > @@ -9,6 +9,7 @@ > * published by the Free Software Foundation. > */ > > +#include > #include > #include > #include > @@ -174,6 +175,7 @@ bool mcpm_is_available(void) > { > return (platform_ops) ? true : false; > } > +EXPORT_SYMBOL_GPL(mcpm_is_available); > > /* > * We can't use regular spinlocks. In the switcher case, it is possible > -- > 2.9.0 >