Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2346183rwd; Fri, 26 May 2023 05:31:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7cCreIRTMra6chvJfVol4qulVY/CjwcA40B3AM94+gxR9a8eiJEPTte14ZB9Tx5SDffbYT X-Received: by 2002:a17:902:e752:b0:1a1:cb18:7f99 with SMTP id p18-20020a170902e75200b001a1cb187f99mr1612831plf.30.1685104280129; Fri, 26 May 2023 05:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685104280; cv=none; d=google.com; s=arc-20160816; b=rBC1dk0JoV5Yz5cQ79jFept84ETA44YT6MDTKVkoCoP0j5cayZUYjqpyMFQxZK2MUp 4xNT72bKASBNGuGrFnO/kuJ5+P7a49lMybz3I8+NOzyjHgpUrrK2VLy5ranFukkhB+FD IBlgZAMQ5uhqewSUjSc6biAY6TKv1NjfjTr0dJRPStSkFj7CVpmrbPXfWV7s8LPtWoOo DNX4DeSeF2GKYaj1dX806PfRiu4hEc/Pt9kgdAo/vSw0ug6zW+JYepS+XQzxvIN2If8V /4n+xurI80uM9UGFQgXpJZ7vUSv1z58aeUwYILZ/aJ1KRSguOxQakP2j1snf2tzwELdD gWng== 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; bh=HS9FeTJWD0p4pSHN9ZRNVSHS7alRttcqaAqFWNCOI7k=; b=Gz6pHGLMpTKtFYqFEw7tCAB55fCRFEkU/DcDsD8mMr593DRXwPBgFT32byoPot++5o OshQVHV2CuUQtAAzWw/mX9cR4hw4zIO5MGh/cXh1EVZ048pAttK5GGIlqoMWPDm6ECEP wOPqUNuJpUSX6pm/WC4LdCctCBAYYJqAkwCJkHEfh1KuKUCggch858nQUz54yJ/f1QkA IMwXDggu8WkJEtKDssXkGYUZ+5ZT847pbic8LBWqw4AoNb9cXYT0dIpM7zTjuYC8d8+s cJEGF1d3FsyqQMmjlawNDzssK7jJhB5ObF+mlkUtqa90eJ6NmgySPVg+TpkYJ5pDsSot I8Zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x16-20020a1709027c1000b001a64b2dc495si75884pll.462.2023.05.26.05.31.07; Fri, 26 May 2023 05:31:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243379AbjEZMTv (ORCPT + 99 others); Fri, 26 May 2023 08:19:51 -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: 7BIT Content-Type: text/plain; charset=US-ASCII 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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: X-Mailing-List: linux-kernel@vger.kernel.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. -- 2.33.0