Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp76590pxb; Fri, 29 Oct 2021 06:07:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBeDbT9qfN4cSWeOGaCqwKvuMcbjHKZa7pFqhRWj9KPITPrHrvyNalXZRz9ILz3y44MYFP X-Received: by 2002:a05:6512:344f:: with SMTP id j15mr2266120lfr.473.1635512870990; Fri, 29 Oct 2021 06:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635512870; cv=none; d=google.com; s=arc-20160816; b=vRGWx9RPwuMrif+CJ9dvZfyqOePuqCZQbMuiRnpgZJ4Wo/ne3K6ak00JgNwOnrWiD6 Batr0wb0pUS0v1Jup9IVJzF5uGaIQMHxp21qONdA4qOfJArHtepGCoCaNgCUzIsejU+j HislUJFbqsmf5sC4j6M8MvEscAMVQJHDImis6IXtwIQT4K5MLaTjoePE1pozZ6mPmqje T6IIoxeusWUVoofq7BBKJg+WVcV3p+6Tb8juk0y3poZZ9Zfo3uz+eWBbwHmR3FsYJxAW T1yA7y8D5bcmUvyBzs9Og6p6HAvytvSF+GUxzJabCKuUSk/FpolIwodciSd1UZpCXReR BzTg== 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=dATn6VRjCM9xRoD/Q28VqlBXdlaBYH7FZCy4bWG4zwY=; b=tUUf3ofQTXumUah26dpoyMldjM8o+f68TwO4OH08npuhgjYR//hKZqBkWzLeIIhEU1 0/V6uSVEaRbwdHF9ffFD2LmQWxnkrjYnHj7ZNpOjslcx/KOn8IrdGlmuQ+3amjxAp5Ui zKk73LNoiYc5mW6DxSPdzmuEqwkhPLDn78KeOixcE+GskHwZLPsXdqXV0e8fNFU5jy7E 8JIUpW3I8jVXWYjj6L44xnTPNmIJCOap6vn+GBnB+rBy0jbgnPZptJckZNaumG6rc5fd vkv3eCUnVdWMpRwBUGw/d0xvYFjwXhMzl97g+f8ofWTZuywzD8aNM8wptEZaYoGQ4/qh btIw== 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 a25si9075398edn.511.2021.10.29.06.06.58; Fri, 29 Oct 2021 06:07:50 -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 S231602AbhJ2NDD (ORCPT + 99 others); Fri, 29 Oct 2021 09:03:03 -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