Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp101728pxb; Fri, 29 Oct 2021 06:33:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/7imWzVbWK7plzjhx/2lq2FM3GGHAa5wp9xvvpJFU6XzhRFmwowpPDc2TnN51bKwWmyu6 X-Received: by 2002:a05:6638:2510:: with SMTP id v16mr1719401jat.68.1635514414827; Fri, 29 Oct 2021 06:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635514414; cv=none; d=google.com; s=arc-20160816; b=GtGbPQwdqxWYvcaT7hslYyTzeLF/OhfkseIWQLnNlVEwNE2WyisEAFksWHgupML8A7 c5lge0XNTKJ/NLyGWuW2ZCE1ua1jqdpuZBUZzXUMLbikgEaaIV6UdrYZiJJpplTS3mM3 gs3qYxWhpM75C282fE9e4UyDC4CawxbMl8FS9wgDBifRSgEWVBvKs6gwrxejmXKhZucZ 0bwDS9TvX39HnWjbZ6Yct6AGuue7Uz2Lp2t+1bk50saJ/XiOxgnEChd0WeKCq6BFwUC5 0dV7ZM9gYxd5Suh10b5JjVaQbqGMXYmXefMB4Mljnc29VVlIebKAWMP6z2ZsmWvu96R8 ZZbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Q2WuY0vEr5IdXzXgmeYA+YpYcpQC0tmmg3Bj/roCaII=; b=YTXRtjUUy06ch/PCBM7IEVitJVj9ryAutSp1QE5rrAycfARZwYaCiowlK3nMh9B+Hd 6ysoPrnup/fytFjx864Bt5yRZ7CBMhH2tqGkFHI8EEuP5DUslolavbS1OkkJi4d8GFiH wx3R9vT+BVCmyQLMrxXBL89/45a8gtPKsTrNliDUrN49ETsdumEb4vzmte6MYrbJbmvz DyNvzN0k4X36fjW2HTSY+/qpXH4AZJ9RT8LOvO6jX+tPa+4qavUz3FZI3VqODO1Y+HVP r5xTH+sOAlSOFzudQa+Yycy6ciVcegGbV1IZIuNm4B5H3XVgiw62IoeheTvFjfq1PdzS ZTdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o5si9483044iow.35.2021.10.29.06.33.22; Fri, 29 Oct 2021 06:33:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231521AbhJ2Nd4 (ORCPT + 99 others); Fri, 29 Oct 2021 09:33:56 -0400 Received: from foss.arm.com ([217.140.110.172]:38348 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231607AbhJ2Ndz (ORCPT ); Fri, 29 Oct 2021 09:33:55 -0400 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 0102D1063; Fri, 29 Oct 2021 06:31:27 -0700 (PDT) Received: from [10.57.25.71] (unknown [10.57.25.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4A5CC3F73D; Fri, 29 Oct 2021 06:31:25 -0700 (PDT) Subject: Re: [PATCH] [RFC] arm64: export this_cpu_has_cap To: Arnd Bergmann , Catalin Marinas , Will Deacon , Mathieu Poirier , Anshuman Khandual Cc: Arnd Bergmann , Marc Zyngier , Mark Rutland , David Brazdil , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20211029113023.760421-1-arnd@kernel.org> From: Suzuki K Poulose Message-ID: <9d4e09b4-47dc-ed3c-2b6d-e0d1a081e592@arm.com> Date: Fri, 29 Oct 2021 14:31:23 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211029113023.760421-1-arnd@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd Thanks for the fix. On 29/10/2021 12:30, Arnd Bergmann wrote: > From: Arnd Bergmann > > It's now used in a coresight driver that can be a loadable module: > > ERROR: modpost: "this_cpu_has_cap" [drivers/hwtracing/coresight/coresight-trbe.ko] undefined! > > Fixes: 8a1065127d95 ("coresight: trbe: Add infrastructure for Errata handling") Reviewed-by: Suzuki K Poulose Tested-by: Suzuki K Poulose Will, Catalin, Mathieu, Do you have a preference on how this fix can be pulled in ? This may be safe to go via coresight tree if it is not too late. Otherwise, it could go via the arm64 tree. Suzuki > Signed-off-by: Arnd Bergmann > --- > Not sure if we actually want this to be exported, this is my local > workaround for the randconfig build bot. > --- > arch/arm64/kernel/cpufeature.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c > index ecbdff795f5e..beccbcfa7391 100644 > --- a/arch/arm64/kernel/cpufeature.c > +++ b/arch/arm64/kernel/cpufeature.c > @@ -2864,6 +2864,7 @@ bool this_cpu_has_cap(unsigned int n) > > return false; > } > +EXPORT_SYMBOL(this_cpu_has_cap); > > /* > * This helper function is used in a narrow window when, >