Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2415631rwd; Fri, 26 May 2023 06:23:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ70uFv5y0pMfowmb8bGXK8UDg+YCIdM0zuCKAsyqBVPhKuFdeiMM9/pZk9P67tOn/NKPJF4 X-Received: by 2002:a05:6a00:218f:b0:64e:bada:2411 with SMTP id h15-20020a056a00218f00b0064ebada2411mr3391610pfi.25.1685107388735; Fri, 26 May 2023 06:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685107388; cv=none; d=google.com; s=arc-20160816; b=JYGMeVOMNHBRYW7jFJ4YoASZS/bNskelpUQlXyBqQabB7hDdRdFYnMg93jl7P98X1h ttDSz51sBHUJM/EeDpYXxm4RVaFFcHIOibZrKLEpeXwgkCBdaV9evbC2p58YlgnsEJNI HCFVNrV3W5C7SJ1LHTW0HQrSfnXAaWA6pdnbXriQwkVuzKERZvaffGrk2jI34V/kHflu Hyh3a5XXvqodK2+ED1KVS7vpbkD8SYm2Qwfn/p9RITl6BwPOqI2VsNQNIkN3I+64KRJB 4qSIQyYDqLxC4m1nMzziphA3OIeQ0xCipGkZqQBUZovdGQTUDpm00VYrqLANl2vYKDkP oBDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=O1ftR2NaUwRa+uecbZP2E2X/UD0aEbrQV6MHUrj8dyQ=; b=QlX4XDO7XtL9UhdEVndopvQ0O7g3q3NH/2g+zvhi6j663OUgHVsfOXLLgO+lW9uS7m rdmu24tVE2Y9lWjwdAc1ozAR0iDJE5jRT1qxOwAhNGn1OYuI+YLje7OOlucH8VT+LNvv zZaBpEpjvGKQWMO1amHm0hEveYU/nOY8SMJ00lOy5jUL66EmhL5N+6cyCAstj6Jzo0o1 uSw1qRTrcYr+OTcaDJrz4/YOF+cpbA/MILIzFXktfztl0JAIbDSDd0nbIZ2m7FdaicLm HAozMt8+ZchbvQWIb9/NbZb8Q2qFZhJH6uyXTBISyiUHEN465qJpbMSB4VQN6TYX+37h XboQ== 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 z128-20020a626586000000b0064367018c21si3633745pfb.12.2023.05.26.06.22.56; Fri, 26 May 2023 06:23:08 -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 S243531AbjEZNMq (ORCPT + 99 others); Fri, 26 May 2023 09:12:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237174AbjEZNMo (ORCPT ); Fri, 26 May 2023 09:12:44 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B341D119 for ; Fri, 26 May 2023 06:12:42 -0700 (PDT) Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QSQHp3FSNzLnkw; Fri, 26 May 2023 21:09:42 +0800 (CST) Received: from [10.67.103.231] (10.67.103.231) 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 21:12:39 +0800 Message-ID: Date: Fri, 26 May 2023 21:12:38 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH] arm64: acpi: Export symbol for acpi_os_ioremap To: Ard Biesheuvel , Lorenzo Pieralisi CC: , , , , , , , , , References: <20230526121751.41060-1-lihuisong@huawei.com> From: "lihuisong (C)" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.231] 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.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 在 2023/5/26 20:39, Ard Biesheuvel 写道: > (cc Lorenzo) > > On Fri, 26 May 2023 at 14:20, Huisong Li wrote: >> 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. >> > That driver does not exist in mainline. We have an uploading driver [1] that may use it. [1] https://patchwork.kernel.org/project/linux-soc/patch/20230522072211.8894-2-lihuisong@huawei.com/ > > Why does it need to use acpi_os_ioremap() instead of the ordinary > memremap/ioremap routines? This driver needs to ioremap the shared memory space of a PCC subspace. And @Sudeep suggested that we use this interface. It is suitable here. > >> 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 >> >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > .