From patchwork Fri May 26 12:17:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lihuisong (C)" X-Patchwork-Id: 13256856 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 DE778C77B7C for ; Fri, 26 May 2023 12:20:23 +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=aEi4COql6l1kg4aASOPAzD59WORxYNhNnU4MRL9DP18=; b=MikhCaQL7JRKW3 q7tR1hL0fNttuh7ElPFOcSzruKL89TyAqZSbKdRukighbbwXLBzTZp4RGyaDfLbMucszeFyrvIhFW syhwmRZhpdZDKYirlVGwfL150l/52F4eETEjT22rCaUz5oXjPwMtlNV2yZPd7mNMTohzpMf5nGjeY CIYnhk0pcSp+FjeEZNdMn0hB+9opBap1BlC8+nhWUOpNwyvyUhvb46FaE7t2GG77976lgicoYbple w5jJc3FEpzpGzEvX/ex+cslI6zAB+Ev2RnqSVZhDKAuDIam+2GwyhPHvoWx5vN/VRplwUtQdsdAUd iCYFau8RHcN1sqf0S7Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q2WQJ-002SMy-1z; Fri, 26 May 2023 12:19:59 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q2WQG-002SLG-0g for linux-arm-kernel@lists.infradead.org; Fri, 26 May 2023 12:19:57 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230526_051956_435264_8BD38385 X-CRM114-Status: UNSURE ( 9.46 ) 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 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 phys, acpi_size size) } return ioremap_prot(phys, size, pgprot_val(prot)); } +EXPORT_SYMBOL(acpi_os_ioremap); /* * Claim Synchronous External Aborts as a firmware first notification.