From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8415C433F5 for ; Fri, 29 Oct 2021 13:00:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8DB71611C9 for ; Fri, 29 Oct 2021 13:00:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231607AbhJ2NDE (ORCPT ); Fri, 29 Oct 2021 09:03:04 -0400 Received: from foss.arm.com ([217.140.110.172]:38060 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231622AbhJ2NCx (ORCPT ); Fri, 29 Oct 2021 09:02:53 -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 805A9ED1; Fri, 29 Oct 2021 06:00:23 -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 CA00D3F73D; Fri, 29 Oct 2021 06:00:21 -0700 (PDT) Subject: Re: [PATCH v5 09/15] coresight: trbe: Add infrastructure for Errata handling To: Arnd Bergmann Cc: Will Deacon , Mathieu Poirier , Catalin Marinas , Anshuman Khandual , Mike Leach , Leo Yan , Marc Zyngier , coresight@lists.linaro.org, Linux ARM , Linux Kernel Mailing List References: <20211014223125.2605031-1-suzuki.poulose@arm.com> <20211014223125.2605031-10-suzuki.poulose@arm.com> From: Suzuki K Poulose Message-ID: Date: Fri, 29 Oct 2021 14:00:20 +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: 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 report. On 29/10/2021 11:31, Arnd Bergmann wrote: > On Fri, Oct 15, 2021 at 12:31 AM Suzuki K Poulose > wrote: >> >> +static void trbe_check_errata(struct trbe_cpudata *cpudata) >> +{ >> + int i; >> + >> + for (i = 0; i < TRBE_ERRATA_MAX; i++) { >> + int cap = trbe_errata_cpucaps[i]; >> + >> + if (WARN_ON_ONCE(cap < 0)) >> + return; >> + if (this_cpu_has_cap(cap)) >> + set_bit(i, cpudata->errata); >> + } >> +} > > this_cpu_has_cap() is private to arch/arm64 and not exported, so this causes > a build failure when used from a loadable module: > > ERROR: modpost: "this_cpu_has_cap" > [drivers/hwtracing/coresight/coresight-trbe.ko] undefined! > > Should this symbol be exported or do we need a different workaround? This should be exported. I can send in a patch. Suzuki