Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp198894pxb; Fri, 29 Oct 2021 08:15:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFGyOjjg82LqiHU1MUV3woTH6MOXBslC2R12tP0cVtVfyBCxqkQyogyYcZoYtyrEcFxUTr X-Received: by 2002:a02:9701:: with SMTP id x1mr8531459jai.97.1635520537118; Fri, 29 Oct 2021 08:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635520537; cv=none; d=google.com; s=arc-20160816; b=mHXDxrT/p614/hCEBJ74nyf4U4ppFM1mL+Wt2G251cKd+T5frC2bAI8FK9psQLPda/ brVCpsZ/iViK3k+jIKibtJ8Opa8c/Ql2I/rO5FajOqczp64WEdISiE8ZZ1yT2pY5tTht dd3aiGbKgPxrbdyjMk7/chov3D+AoSqUrOFJHFtjOCEyUbZkPlW5gtGR3sTCjuaeDUaC Hj5bflxizp0pwRsvl+lvEp/eYJQmRL/T0vAsT3AKTPqOlIbnlnwVD+IkWQA3sndxsUMi sDe8875L7o0PVu09tjEi0eXcq3TX1jreR3d+EcuvHOjN1CevugV18tc2bTr0ca5rL+zv SWzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jbp1RVUWpXxmf6q8wM0Uf1eGImV3WO+nHaJoNI5GzDs=; b=hWoS7RqV2uFHSw+R3I/U2RoOemi4Lc1rsO3aTKmaH6pF47iHp01jiM43OgREGy6vgO Hk+EnTEC293gDn5YOqMC+yDu8bUb7QVNKl/lsN4FlXR05qqHjf7JNo2hGQx0MDIdWwEG FE4c+/Ba0UwQUZjitMdYg53WFXkecSaOx8DCSn7VfGaEAuyEJbFVbFTvzVjo59dbS6ut RVI6aSYZyGZZcUzRNjvyDcFOEDcdbATzT1so09aabjmy310NJVSrHu38DTfS49eAZBU3 S5dm280+miacIGoOOC9bIHGKuUDpY4DFs/I3880s7rs+Jew7MM0rI0Zi42iVVIR3pg9Y JW/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mMC4BoJW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si3104898ilv.98.2021.10.29.08.15.01; Fri, 29 Oct 2021 08:15:37 -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; dkim=pass header.i=@linaro.org header.s=google header.b=mMC4BoJW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbhJ2PPQ (ORCPT + 99 others); Fri, 29 Oct 2021 11:15:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbhJ2PPP (ORCPT ); Fri, 29 Oct 2021 11:15:15 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADBE5C061570 for ; Fri, 29 Oct 2021 08:12:46 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id h7so40376177ede.8 for ; Fri, 29 Oct 2021 08:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jbp1RVUWpXxmf6q8wM0Uf1eGImV3WO+nHaJoNI5GzDs=; b=mMC4BoJW3hMSmbxyFp6HdSByFD3WUlevp7UGvD8AkSAidA2poPLFA3Tpfw+fe4Nyd1 rsME8fJqcfF265gVd1pHPe+imgFu7OZEFVsZmNamkeN9h205hCdp5aQsNBEp6+f1UvI/ CUJgxSS6iWsfh8A85CvH/smVNy0ysNbWo/MZXi3pXVSfcGR6dLbo1AtkZPzQfurV6Wiq 79dIpAWNut/XA6NUr2ANC6skrSwxEDjmDS6aQSeTNj89amtuF3o5MvgFNRthCA8ABjAp 7qz4sNtqh46UrFETo1hyMhKBAynodWJSKy0pCb+kpcUGoWCo4JeJUY60tteckS0BTFKe jrkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jbp1RVUWpXxmf6q8wM0Uf1eGImV3WO+nHaJoNI5GzDs=; b=jfXa4RdJbNrs7dZeg8h4zDzIYFTR83ImS5vzPibrab1SvjZ1UP9ErQrRgERoSU3kcw EUYKuK2xferEme75Larq8CQizmgDTb2h24S7Wtk9IEZIQPQ+dBGVP1NFoe0drpNfFc47 5RoSSxjzC2el4cHkCCsyoo+RnBpSYxElDlFk8FrIJM0DPoovRRzIhfHlYYxIv5XmjHmz +uyuqQo3MzHMPvxxIM8AmatI+HiJemrkJdQ3FbU096viVb05YHMBEE4Qt8G2LF5y1b/A RudQttMcWx3b/ybMo7eiMFrSilxrwp849DevinZfl/eYN2uRJP/+lODQ03vIAR10n8Br ke+A== X-Gm-Message-State: AOAM532NFuXbllYNKfpDqNPWShpiSYD+yno/EFANMsXxHs97LpX41/9Q 1ymurF8dCr+LFZbq4oslHdidg7FUPrGlP0nBGKp0uw== X-Received: by 2002:a17:907:9858:: with SMTP id jj24mr14491131ejc.505.1635520365217; Fri, 29 Oct 2021 08:12:45 -0700 (PDT) MIME-Version: 1.0 References: <20211029113023.760421-1-arnd@kernel.org> <9d4e09b4-47dc-ed3c-2b6d-e0d1a081e592@arm.com> In-Reply-To: <9d4e09b4-47dc-ed3c-2b6d-e0d1a081e592@arm.com> From: Mathieu Poirier Date: Fri, 29 Oct 2021 09:12:33 -0600 Message-ID: Subject: Re: [PATCH] [RFC] arm64: export this_cpu_has_cap To: Suzuki K Poulose Cc: Arnd Bergmann , Catalin Marinas , Will Deacon , Anshuman Khandual , Arnd Bergmann , Marc Zyngier , Mark Rutland , David Brazdil , linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Oct 2021 at 07:31, Suzuki K Poulose wrote: > > 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. All the same to me. It's in arm64 so I'll let Will and Catalin have the final word. > > 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, > > >