Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp943716pxb; Wed, 3 Nov 2021 15:16:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBH/0JasdaCnQhOauMrgw3SCx5jNpT9i9PlfDYGyfJwYnpGbNHJ/TtxSwuyqkK4J2jZsp9 X-Received: by 2002:a50:e041:: with SMTP id g1mr63129996edl.4.1635977817274; Wed, 03 Nov 2021 15:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635977817; cv=none; d=google.com; s=arc-20160816; b=NM6TXlzuGj119ZIEWibIKcLmU3OtsSUlRFlvu4LperHG4m8dIvi5ZGYFuk1a7Bv1d2 7OByQIQZcpYnDhc/QvbAfN6CLzSszRosyRfzm6b0gjeZxfVU3InO4E8RF3af2Mwy24CS iIFwv0qtwYTkoyObyrZiBQUJa2a7N/kRsVbV4hKgQtYkJCeoLWXwa5lIOtejR8CVKZyx LD+m5MDB0LigZArxLKgq6zSeHAFkUw0DLM+OrLxgAWKwZ3ap6GN8cbwgNwSznuD8e81n Cfe1zywMQK/DkwiZfSPdzrH+9JZg+o+9pQgWnBeWW2WmDg9xHin/AzU6nEAMA4r8RCfE 3DxA== 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; bh=5Rw0MFbhHGe3VUh7pw1NLqv4cEIEqvwVxB99IPsgvjM=; b=g+7jYz2JVL7ATGb3gEQ1wcOgXwdqvC8cELiZGpVmO9rgLyGl/1CCVnHfOCBN9OsXfW W1YMjdPYktS1rM+utnDbLSqlYGUo3LkkCo9QgRq8yDmo5vPpjxlWLQ5C4cICN/K1tuQL /PnV8LtbX2aMymaaCMsxJek9YPY/sxtiI373YmPPByMeZ6DqJyn0ax3FXltNbS21DRw1 daC+X/crEElrnZM12cVcWWoMeujxBg5XhMZuzz8bRSI2vobZeYYWSeoyQqmpvdl/kNZC qmzb5v/dmPVrWOmS7yzxOHfHHKvhXVbwMQYQ7lbaJLA3ZwdePoNTLeknrw5ybK8VoM7t pUDw== 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 h19si4780308ejt.292.2021.11.03.15.16.16; Wed, 03 Nov 2021 15:16:57 -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 S230310AbhKCWPn (ORCPT + 99 others); Wed, 3 Nov 2021 18:15:43 -0400 Received: from foss.arm.com ([217.140.110.172]:38770 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229698AbhKCWPm (ORCPT ); Wed, 3 Nov 2021 18:15:42 -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 EDC17ED1; Wed, 3 Nov 2021 15:13:04 -0700 (PDT) Received: from ewhatever.cambridge.arm.com (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7535D3F7D7; Wed, 3 Nov 2021 15:13:03 -0700 (PDT) From: Suzuki K Poulose To: will@kernel.org Cc: arnd@kernel.org, mathieu.poirier@linaro.org, catalin.marinas@arm.com, gregkh@linuxfoundation.org, anshuman.khandual@arm.com, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Suzuki K Poulose Subject: [PATCH] arm64: cpufeature: Export this_cpu_has_cap helper Date: Wed, 3 Nov 2021 22:12:56 +0000 Message-Id: <20211103221256.725080-1-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Export the this_cpu_has_cap() for use by modules. This is used by TRBE driver. Without this patch, TRBE will fail to build as a module : ERROR: modpost: "this_cpu_has_cap" [drivers/hwtracing/coresight/coresight-trbe.ko] undefined! Fixes: 8a1065127d95 ("coresight: trbe: Add infrastructure for Errata handling") Cc: Will Deacon Cc: Catalin Marinas Cc: Mathieu Poirier Cc: Anshuman Khandual Signed-off-by: Arnd Bergmann [ change to EXPORT_SYMBOL_GPL ] Acked-by: Catalin Marinas Signed-off-by: Suzuki K Poulose --- 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 f8a3067d10c6..82e68c69bb99 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -2839,6 +2839,7 @@ bool this_cpu_has_cap(unsigned int n) return false; } +EXPORT_SYMBOL_GPL(this_cpu_has_cap); /* * This helper function is used in a narrow window when, -- 2.25.4