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 7729CC433F5 for ; Thu, 11 Nov 2021 03:23:39 +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 31ADA611AD for ; Thu, 11 Nov 2021 03:23:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 31ADA611AD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.dev 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=nWsewzre8AjfXo5yxONv0zA3U5r3vynOmrpPU/kAVYM=; b=LJm6+hr/5Q1j25 8VbiATsOStfzp5bvHNGmecfwkfJ0eCHFe3ncm3c8WXYG9rLThAPev+dWum+oGX/m4eqKyt4tC9ELM AHDYiX4h/vM+Mbr7KYeNTkFAJ6BowELXc/GYxIzEKQYhd5RyHFKaC/olb0LZj7jw9ulHnVTJkR9TV DgjshEN51bTz5IvC6jY7tlIslvlevzz5dZQtsQdgDP4zYiRPFfAl4yNMUqcl4wVuMHj7Ir0/jJGqq 77P6qvtmyfuy5QhXc9PM1lk/Q8gr3u5G4Ecux3R+w9mAro1DILO5rZ31hSWCFrXycQAUOfM5+yPKJ JcNESonvwTEC6KV362Ow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ml0fL-006vsp-1G; Thu, 11 Nov 2021 03:22:19 +0000 Received: from out2.migadu.com ([188.165.223.204]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ml0fH-006vsM-3Z for linux-arm-kernel@lists.infradead.org; Thu, 11 Nov 2021 03:22:16 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1636600928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uPJiITECmwclyn3rkKY3bXlh6wOOPwVQW2CFT3qOfxA=; b=bz2lHrAah2vLRzQgBL0NwOAnXFB6wGzFXaUIWprLEKtWh4pk0XXJGyJLVh7Za9ZyPPUMRI apvWh3KkBUqNc813iBwLzKB3geiBYRrEFfCsUSzMNxyHjQWwWb/q9ZfHqEs1FeeIXlWIZv Y6thqTci2dPVZ9cVkZYcgB2xxAOKfZs= From: Jackie Liu To: catalin.marinas@arm.com, will@kernel.org Cc: mark.rutland@arm.com, suzuki.poulose@arm.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: export this_cpu_has_cap Date: Thu, 11 Nov 2021 11:21:38 +0800 Message-Id: <20211111032138.2359201-1-liu.yun@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: liu.yun@linux.dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211110_192215_345735_D9D994D2 X-CRM114-Status: UNSURE ( 8.69 ) 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: Jackie Liu After commit 8a1065127d95 ("coresight: trbe: Add infrastructure for Errata handling"), driver coresight use this_cpu_has_cap for check feature, but if we compile it as a module, it will cause a compilation error. [...] ERROR: modpost: "this_cpu_has_cap" [drivers/hwtracing/coresight/coresight-trbe.ko] undefined! make[1]: *** [scripts/Makefile.modpost:134: modules-only.symvers] Error 1 make[1]: *** Deleting file 'modules-only.symvers' make: *** [Makefile:1765: modules] Error 2 make: *** Waiting for unfinished jobs.... [...] Fixes: 8a1065127d95 ("coresight: trbe: Add infrastructure for Errata handling") Reported-by: kernelbot Signed-off-by: Jackie Liu --- 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..646662407a07 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_GPL(this_cpu_has_cap); /* * This helper function is used in a narrow window when, -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel