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 CF778C433EF for ; Fri, 29 Oct 2021 11:31:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9AC2F61165 for ; Fri, 29 Oct 2021 11:31:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9AC2F61165 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pMLJFRcH+H+g7Hm+p6Pd8j2bMoKlnu/uO8C6MCA0Q4E=; b=SLvYWkzmPmfR4d i99BI7KhYlTkQF23QL+szEz2/zecXqkj9+3QEfmpz0CT2oA/iBT4VPJ3Wi5aqLzszEWmmlB2Qgf+m PacacKBzj8Eqz/gMkIrR7yRS+SognWtCrh5ERBjODJC/6VJcxtdWkcXrC7fc62Tpm1KLyfzaYKLEI blife4cbp94D4uRzIBrxqRfd/2Q0evbXVBv6Ktg8EOlL8mQ7ygXPyAfruqXXGhQ/SZ6xS60OlnIna CZj3UzXvXyB2PMmxEuWe8h6vMjdmer7wAT+Rlnhv1syvSZN4SCA96FksckfPNjytAnWfLD1Cfk2Fl L+GmwK8h6mx18CqLL2TA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgQ5g-00AkcO-6J; Fri, 29 Oct 2021 11:30:32 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgQ5d-00Akbu-G9 for linux-arm-kernel@lists.infradead.org; Fri, 29 Oct 2021 11:30:30 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211029_043029_586371_C06DD394 X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel