Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2584369pxb; Fri, 29 Oct 2021 04:32:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyQpwnJJMXoxUEAtztNar1S1xyB8+nhVKE58tFUh0F/esj5dYqHwp+A/c0tCRHbqwSLtKl X-Received: by 2002:a17:902:6b0c:b0:13f:aaf4:3df3 with SMTP id o12-20020a1709026b0c00b0013faaf43df3mr9431199plk.75.1635507178967; Fri, 29 Oct 2021 04:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635507178; cv=none; d=google.com; s=arc-20160816; b=x0ZGnji4JHqbnbl/xO8fDCT+1mi/7Kb7zLAnfbUwwkKu8GjT8AB9Z9hxZfjnM6JSD6 PW6h5Oa/WnGe7iM3pVFvvgOhY8HiPYufiS5JAa+bIzSU72CWKhZI0FciNozJdHDy49// bNwgK5p3/S1PMwMESi88jRWN0+R1O7I1v76tc4h7eH/e6LoIeLs1/eqVfRT2y5sS3wlV LVU1cWrWjbDtHOuQ2iT3hvISayOnIDYHMR5PN9D/sNbxLem+nw6oiPk6Km8dRGXDEwF9 LCjuuOfqS8kIRAG4woUswdf3ukiObDQLnl7Lb30QZGQgJMnuVIx/a+CReZs2Eyo7vUrp 2g7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VnvDAM39ZTuLShLgVjNLvynCwORIF0XKaVlH0vtB25w=; b=jt+AxZ+e0kx12bMdrOGaFyOvbd69POfGVbKUKk99Hv/+g0JjTkguATFGht6MmuKnx7 u6QNZzM82+GZgnKdwoh9gX+vDYGb8CJaXR9nMUvA+6O2eVGkVkMuRIsSgHlq1JnnV+QK rsVUi0JRnkAJu4vzJ5OKuxfFoV60mgV4S96wLCnuUJUvylA62hfFQHzGhCptYWFQWmv3 0O/Tj8NTGHEh/h9sE7FrbFR1vbkFsEC7D2rKuvdmVW+dDjeVp2GXFyIpiKsKnks7ZXgT KT+YalDlpk03uqHUOWAVhdIE8jOwEq4k2nUmkZVtqKBebDNN7jRBO2pHJXZd9ShAJoo4 3cZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L6KvY7tm; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m125si7743618pgm.222.2021.10.29.04.32.45; Fri, 29 Oct 2021 04:32:58 -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=@kernel.org header.s=k20201202 header.b=L6KvY7tm; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231946AbhJ2Lc5 (ORCPT + 99 others); Fri, 29 Oct 2021 07:32:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:49138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231754AbhJ2Lc4 (ORCPT ); Fri, 29 Oct 2021 07:32:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6C7926115C; Fri, 29 Oct 2021 11:30:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635507028; bh=cIT0bnNlx5iIGJokoXgfb/yoQCHCSxX07PLQuki70OA=; h=From:To:Cc:Subject:Date:From; b=L6KvY7tmqblCDW5SxY8H6iNxB1OceRmAUsy+CmTf8afiQS2RNvPqrlQLfiol8UT0x 88aHItvZjoig8dnSCDAQfoKFjZCaZ9LsyFQDhBi7gUHJtQHwAmfpBKEsOkv9tcJX6S ZTRx8+cjbM/CnOrBCVBLu1GG2STAxJKUiQ2utb7/DyIesJIKZdqTIbaC5o7Af58lt4 3ufTQE2k4kSK97SjyDSonPsE74Olxzm3ehqFDeuSTtudsU0XPAJyb88az3I3eC1XDO bM1dYglU8DQNv7bdqje1v8M9buBCXOrIZYjPXnr+nnbYg865qEo4ePTQkzvba5uhL3 fhRBDd9dUlDiQ== From: Arnd Bergmann To: Catalin Marinas , Will Deacon , Mathieu Poirier , Suzuki K Poulose , Anshuman Khandual Cc: Arnd Bergmann , Marc Zyngier , Mark Rutland , David Brazdil , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] [RFC] arm64: export this_cpu_has_cap Date: Fri, 29 Oct 2021 13:30:16 +0200 Message-Id: <20211029113023.760421-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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") 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, -- 2.29.2