From patchwork Tue Dec 12 21:48:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13490033 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id AE26AC4167B for ; Tue, 12 Dec 2023 21:49:24 +0000 (UTC) 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=Zx9XKBWjOJ2IZAmsOv8bjsxAPUOI6/wXRW+RKzYs04E=; b=diJcUV3jfO2nTm TY0SoF7YXVVIJEA4eaP9aD2QCnOFp9JPD3L5/KCOgKGLHtS1QGOipek0nJ9LVbk5vNt1jRr046Lx0 enH8rrjtkCTjidmHUTs7TRxK0lFSGhXs/RW3wrE+NcW99d7IBtDz/JKdyj2AwBqyjkkR8kwtUncTS Q3oZXetCUr/ka+HZAbH4S2H1WVtRQF00HN6TQ4C18Vrv/5Ui6Ens5AO32WbpU7z7e5Mdbs5OW0Nx6 AgTx7on11yGTAJ0/vg8GsJfIJNaWW3Tsd9ZqN9OLShA+8ugHdyhBRaMiwhEzjfCdE/CCGwPmgTgsN 2wkjmxOyPw5HoatCKbeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDAcg-00CrRa-0o; Tue, 12 Dec 2023 21:49:02 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDAcd-00CrPG-2p for linux-arm-kernel@lists.infradead.org; Tue, 12 Dec 2023 21:49:01 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 28C21619FF; Tue, 12 Dec 2023 21:48:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 616BEC433C7; Tue, 12 Dec 2023 21:48:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702417729; bh=BPAdG+oACXLZR8/adiQ5gMuFjpTAdv8WeoWfNUPMLGs=; h=From:To:Cc:Subject:Date:From; b=tIfrdAcFA7VhDmw1ujVQSY0BkueuygHvl6NJMj3NNfyft50rA+tKCoi9lO4beB4+r l45CQ2WVFiW0Nyx+Pidlls+qP3E3NRTTwdsfjKnm+QnI2hzHO4nKKRJM3ebUeah2r8 inwoqJCWg+oY7INHYk5ex19Wi+bgg3TnwwlvJFm24A7c7P2XW43zGrumH0MOdi9eUB bzwHZILIVbNE+urUkkqB+uEZhcdpsn5aHVg2x/be/gGTfJTarycnyISGxPd04xD5Vz htSoG00k3vpD+zPZBrUVe4F54Fh1KhrZOAxvr0bRkzhroIdqnYO2s2JyjafwR1IjHP txJf8HjxmhYtA== From: Arnd Bergmann To: Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "Rafael J. Wysocki" , Sumit Gupta , Srikar Srimath Tirumala Cc: Arnd Bergmann , Len Brown , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ACPI: arm64: export acpi_arch_thermal_cpufreq_pctg Date: Tue, 12 Dec 2023 22:48:38 +0100 Message-Id: <20231212214843.256622-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231212_134859_952244_FF5D5F7F X-CRM114-Status: UNSURE ( 9.97 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann The cpufreq code can be in a loadable module, so the architecture support for it has to be exported: ERROR: modpost: "acpi_arch_thermal_cpufreq_pctg" [drivers/acpi/processor.ko] undefined! Fixes: 310293a2b941 ("ACPI: processor: reduce CPUFREQ thermal reduction pctg for Tegra241") Signed-off-by: Arnd Bergmann --- drivers/acpi/arm64/thermal_cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/acpi/arm64/thermal_cpufreq.c b/drivers/acpi/arm64/thermal_cpufreq.c index d524f2cd6044..582854914c5c 100644 --- a/drivers/acpi/arm64/thermal_cpufreq.c +++ b/drivers/acpi/arm64/thermal_cpufreq.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only #include +#include #include "../internal.h" @@ -18,3 +19,4 @@ int acpi_arch_thermal_cpufreq_pctg(void) return 0; } +EXPORT_SYMBOL_GPL(acpi_arch_thermal_cpufreq_pctg);