Message ID | 20231212214843.256622-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp8022162vqy; Tue, 12 Dec 2023 13:48:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqNRX1FD0VoHfYZGBGd6C5qYdmCG/WoMaNvyqTJsWlBe2JB2lx08unBJnUMG4XpYqXzDs4 X-Received: by 2002:a17:90a:4086:b0:285:adb1:6acb with SMTP id l6-20020a17090a408600b00285adb16acbmr3463343pjg.29.1702417735566; Tue, 12 Dec 2023 13:48:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702417735; cv=none; d=google.com; s=arc-20160816; b=oPUNxIA9CIYAshjveJptGIgh80L+S0LMfa7bOaU0KU3rxQeO8tCMZHVHx1Rc0ouh28 zf/qzRlSfJ14VV2vN+f33kSHkyYI+4kv99nok6plT4n1fLHR+OdqpYb78axlC1LHWnwA fWq03UWgAjE2RZ5rP3nwhkCCgihDqwWy44qUPC990BJy+NTFxPxoSQlyZ+uzeuyDwRAS sr9DIxek8zpPk0mmjCplp1wLpUmBCZpEmOZXbDt3rpGN4dS1bZUZsM6G09dzjDofe0oi Qsz8e8y50Niwud/vVm5QnVOvs0CgIkwgozniKPP2fn8vL0UfgFfmWyxA0TCLa0iqXIY+ zJlw== 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=gVzhB9iQM1WKWU51Z5UYQPGq5QKNaYywHFBLXtJDW5w=; fh=fkoDTCSeHeSTOL5d+tyl4nOicudGfAlkHGUio7ndYb8=; b=f4/CDgtULXeuj7AwkVqx0CYv5lmrXblhAJKB/F0HDfxkXRkblcRsXa9EgGibftuc8+ amuJLOkwX6AI4Me7HPkaGDZ/k/VauAKfba7WumvvC5iV/u61AwcX7f0rRF4cNVMkZ1X2 r3axielvxg3IzJbH4YetyTAXuK8oHz1wTYTvfohrDKlfY+eKupdwcGqL2HJBEh8UjcLo DCi36+ptPlZ4Hk3vH2skMvQ/Xp4B0gsAWUgbhLaV4UPPVQCXk3bmW8XVOjhYtOWFhJO5 78BKoI56i0CplV3I2g9x9pzZAxAmvhZtl62Q5pxmQPUDUQtb+abf5OG9szc+gZYcrvwe 6gwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tIfrdAcF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bb12-20020a17090b008c00b002865781c521si9723527pjb.95.2023.12.12.13.48.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 13:48:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tIfrdAcF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AB0F38077551; Tue, 12 Dec 2023 13:48:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377427AbjLLVsp (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Tue, 12 Dec 2023 16:48:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235165AbjLLVso (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Dec 2023 16:48:44 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29CA4B0 for <linux-kernel@vger.kernel.org>; Tue, 12 Dec 2023 13:48:50 -0800 (PST) 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 <arnd@kernel.org> To: Lorenzo Pieralisi <lpieralisi@kernel.org>, Hanjun Guo <guohanjun@huawei.com>, Sudeep Holla <sudeep.holla@arm.com>, "Rafael J. Wysocki" <rafael@kernel.org>, Sumit Gupta <sumitg@nvidia.com>, Srikar Srimath Tirumala <srikars@nvidia.com> Cc: Arnd Bergmann <arnd@arndb.de>, Len Brown <lenb@kernel.org>, 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Dec 2023 13:48:54 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785114379340996856 X-GMAIL-MSGID: 1785114379340996856 |
Series |
ACPI: arm64: export acpi_arch_thermal_cpufreq_pctg
|
|
Commit Message
Arnd Bergmann
Dec. 12, 2023, 9:48 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> 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 <arnd@arndb.de> --- drivers/acpi/arm64/thermal_cpufreq.c | 2 ++ 1 file changed, 2 insertions(+)
Comments
On Tue, Dec 12, 2023 at 10:48 PM Arnd Bergmann <arnd@kernel.org> wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > 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 <arnd@arndb.de> > --- > 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 <linux/acpi.h> > +#include <linux/export.h> > > #include "../internal.h" > > @@ -18,3 +19,4 @@ int acpi_arch_thermal_cpufreq_pctg(void) > > return 0; > } > +EXPORT_SYMBOL_GPL(acpi_arch_thermal_cpufreq_pctg); > -- Applied, thanks!
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 <linux/acpi.h> +#include <linux/export.h> #include "../internal.h" @@ -18,3 +19,4 @@ int acpi_arch_thermal_cpufreq_pctg(void) return 0; } +EXPORT_SYMBOL_GPL(acpi_arch_thermal_cpufreq_pctg);