Message ID | 20231208103332.2829631-1-anders.roxell@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 9EFA5C4167B for <linux-arm-kernel@archiver.kernel.org>; Fri, 8 Dec 2023 10:34:10 +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=dVh0AYE/+FL1/mMbMEFLOSnFK+IEgSOyKLuFmvHBFwY=; b=I8pnEd4cj60f3V x+08egk3QLU+5zrWR9oC2KCcNZvauA+a97kWK+nxhaupnwZZo0YVr2jGpdzL3n8oO0M9clXJ9LhEM qqgOBQHqD8rMzGOUKlUBKmNRezO6Qm+WMomCVv5wqP3eBexW6z3iIZxX2xPDpOntwQjoFqePRNk8U eVZFFFZwLfW0h4tyHs3ysET3/kpoID1ShNdVeAi47/ZNDnefQE2R1ZgH0GwklTkakhU58QgB+M8g8 L1yGcdnGA1h61K+bskv3+G+LrdUA9g1W+Ts3vMvyeufNifccayCJKzlLcz4BrdN3pCXq0h1Td111E ObmAvgVGHffD2+Ss4QNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rBYAy-00FGhq-0N; Fri, 08 Dec 2023 10:33:44 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rBYAu-00FGej-2b for linux-arm-kernel@lists.infradead.org; Fri, 08 Dec 2023 10:33:42 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-50bf3efe2cbso2188530e87.2 for <linux-arm-kernel@lists.infradead.org>; Fri, 08 Dec 2023 02:33:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702031618; x=1702636418; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=h4cT1vPyF4MV6Slk3a0U6oOkB8CmE1BrFIZp/eFFbf4=; b=zBZp8/ti1uxewcqDSn6yfhOaanQJryXLvQiwOC9kC7k/doituyO3//tC+CiCcWKT2e csXl04e+iI1dCO9hEWCd2wzV6y95hT7G64kNPQKECml5jQRu73JE++6t9yaaQDzrH8g2 wXMnm2UbdHFdlGG7+f9jx0Z+92npq3YGA7Dsh/I4h1LNYToGmMA0SgdZdSw0KZdAJmhJ bXTpXzGwAzdNvS3NrriFo3YUOSFfh6POX3/P3YMssg0AbWsBVpLJq7uxQ5pI3/6HIqYr PkAg3ndO0ssz66ZVCPt9sHJlGCVEM1hLzAY/OYCKcl97HLkwiMQlVsrnApuuwQ3KCv/0 qDqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702031618; x=1702636418; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h4cT1vPyF4MV6Slk3a0U6oOkB8CmE1BrFIZp/eFFbf4=; b=o2JH4UfnVu1mSyJAinM2a+Ow5At815GERo+m/hBG8S/1V/zyr0sCMKms9XE/OxQeKm Nd9Hy6dOGXnMWJzSzgr4zHyTPrEOLHWSKBQ7EbT1KWIb/7mVvv5ZhnZSbIEqGc3ooQk5 RrqOKyLYoToFmwyZc1FgtYyIxGUVnh0ipyLDQc4zffqPAhEbxGVfTX+xQ4INxF1ZJSK/ olYO6kUzu8HjyvPzX3x+YQPaaedq+7qm+UYT6GRiOBqWUc1bfGMClNeCv/NMsEvRqj7x HAX5J8U1WRpbQk1ZwRVl84/m/kbV78MeIBoNk93uoq+z9sk6YmBAVINaMqt1YXHfEvE9 OPlw== X-Gm-Message-State: AOJu0YwHejzL24Mslcc+vTgEHkuBujNN1lzEE7sZNoPUKHP+bQFmbTSt 2kRCesM8CPaYDnu5TV5Np8AbEA== X-Google-Smtp-Source: AGHT+IE1x+vEB0enFOFbtTJdwklZj+bcAzaYQcqHhZJJEoKhfkAXGO7EL1aO6WM7utpSS1pYmNwbYA== X-Received: by 2002:ac2:4a84:0:b0:50b:f51a:299d with SMTP id l4-20020ac24a84000000b0050bf51a299dmr1077926lfp.18.1702031617898; Fri, 08 Dec 2023 02:33:37 -0800 (PST) Received: from localhost (c-9b0ee555.07-21-73746f28.bbcust.telenor.se. [85.229.14.155]) by smtp.gmail.com with ESMTPSA id y1-20020ac24e61000000b0050bff86c497sm176842lfs.23.2023.12.08.02.33.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 02:33:37 -0800 (PST) From: Anders Roxell <anders.roxell@linaro.org> To: lpieralisi@kernel.org, guohanjun@huawei.com, sudeep.holla@arm.com Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, james.morse@arm.com, Anders Roxell <anders.roxell@linaro.org>, Arnd Bergmann <arnd@arndb.de> Subject: [PATCH] drivers: acpi: arm64: thermal_cpufreq: export module Date: Fri, 8 Dec 2023 11:33:32 +0100 Message-ID: <20231208103332.2829631-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231208_023340_866727_CA9E82EA X-CRM114-Status: GOOD ( 11.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
drivers: acpi: arm64: thermal_cpufreq: export module
|
expand
|
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);
The following build error shows up when building an allmodconfig kernel on arch=arm64: ERROR: modpost: "acpi_arch_thermal_cpufreq_pctg" [drivers/acpi/processor.ko] undefined! make[3]: *** [/next/scripts/Makefile.modpost:145: Module.symvers] Error 1 make[3]: Target '__modpost' not remade because of errors. make[2]: *** [/tmp/next/Makefile:1876: modpost] Error 2 make[2]: Target '__all' not remade because of errors. make[1]: *** [/tmp/next/Makefile:243: __sub-make] Error 2 make[1]: Target '__all' not remade because of errors. make: *** [Makefile:243: __sub-make] Error 2 make: Target '__all' not remade because of errors. Solve the issue by export acpi_arch_thermal_cpufreq_pctg() since the function are used in function 'acpi_thermal_cpufreq_config()'. Fixes: a02f66bb3cf4 ("ACPI: Move ACPI_HOTPLUG_CPU to be disabled on arm64 and riscv") Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Anders Roxell <anders.roxell@linaro.org> --- drivers/acpi/arm64/thermal_cpufreq.c | 2 ++ 1 file changed, 2 insertions(+)