From nobody Fri Apr 26 02:19:46 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9477BC77B7C for ; Fri, 26 May 2023 12:19:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243386AbjEZMTw (ORCPT ); Fri, 26 May 2023 08:19:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230064AbjEZMTt (ORCPT ); Fri, 26 May 2023 08:19:49 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CD7EA4 for ; Fri, 26 May 2023 05:19:48 -0700 (PDT) Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QSP7g4t7YzsRnm; Fri, 26 May 2023 20:17:35 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 26 May 2023 20:19:44 +0800 From: Huisong Li To: , , , CC: , , , , , Subject: [PATCH] arm64: acpi: Export symbol for acpi_os_ioremap Date: Fri, 26 May 2023 20:17:51 +0800 Message-ID: <20230526121751.41060-1-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The driver who calls the acpi_os_ioremap() cannot be compiled if the 'M' is selected for the driver. The compiling log is as follows: --> MODPOST Module.symvers ERROR: modpost: "acpi_os_ioremap" [drivers/soc/hisilicon/xxx.ko] undefined! scripts/Makefile.modpost:136: recipe for target 'Module.symvers' failed make[1]: *** [Module.symvers] Error 1 So this patch exports symbol for acpi_os_ioremap. Signed-off-by: Huisong Li --- arch/arm64/kernel/acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c index dba8fcec7f33..ec0414caf3d1 100644 --- a/arch/arm64/kernel/acpi.c +++ b/arch/arm64/kernel/acpi.c @@ -354,6 +354,7 @@ void __iomem *acpi_os_ioremap(acpi_physical_address phy= s, acpi_size size) } return ioremap_prot(phys, size, pgprot_val(prot)); } +EXPORT_SYMBOL(acpi_os_ioremap); =20 /* * Claim Synchronous External Aborts as a firmware first notification. --=20 2.33.0