From patchwork Tue Oct 18 08:22:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin He X-Patchwork-Id: 4010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1842813wrs; Tue, 18 Oct 2022 01:39:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4BwYIA3s+fHyyOpdOltVuWZd6ZDZ7D5ZAza1P3ZslPNvlsfiaxZIT8OQx8q9TiGT1BDewR X-Received: by 2002:a65:6849:0:b0:461:8779:2452 with SMTP id q9-20020a656849000000b0046187792452mr1676227pgt.383.1666082398110; Tue, 18 Oct 2022 01:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666082398; cv=none; d=google.com; s=arc-20160816; b=wpXsHFB9URygQxSAWvZ/sVZraMWWAAmc/bH4aDgE+zBwxynIPi8pSkLAJqrDkuntzz rbkCHbvEtxQ/XaSfJZM6QnRwVlra4I2AiUgxlTD6sgYHgJsW9KIV+aFuQh705prGqPS+ 0m4+p6hsDiKwsqVZeCz7VvKSpPmm2RIugJfTVcp2fyRKFzzQ7y/pWwIJYQmYIgdfMFvX F//Icpm2lZ0BHZp7KQpRgK6n/VuVoONOxm5mvHR/sUk8d5UJ14vIqgUIfxnNoQkMpojk 6iFls2ewMyYSWbLGJTqqjM64whgEls+heP3CuFwXrkKo4ZpiKnXPhCuEPXq23EUCDTYE 0JFA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=G6hiJbfMu0trAMC0w4D0u4HW5tVNMlkYfGkHnBStAKc=; b=dpzR3o33K6+hUL2Gy2P9BFu7mmp4F7Q1N8yjTJ/0OPdsxgK+lnrA4zN6oy4v1+FCP9 BTFeaHhIcp/CZ3d+1MkiubueEh/IPVfbocdXrNQdazl0b8J158C0JDi5bebWezILirax L23itCvW1WrxwYc9qp7m2/HtHXHTf7TpzCx8/ZRqbNMWL/KcyVdVBr8O3tutxxtWiRgt JmP0QSm0oaLhDviw5l/bw69qb9ywwvarmLwW7BRDvmEMN3tNb5KcJYBgVzH+d9QnrB2e GXtO9EokBgsymMKt9oqBuouiX078RNukyRrBjg92UW47iFtOZ7xLivzO1jSRQy1ODfin NICQ== 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=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a170902eccb00b00176db576dc0si17748311plh.147.2022.10.18.01.39.45; Tue, 18 Oct 2022 01:39:58 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbiJRI1Z (ORCPT + 99 others); Tue, 18 Oct 2022 04:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230501AbiJRI1U (ORCPT ); Tue, 18 Oct 2022 04:27:20 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3BD5E9AC05; Tue, 18 Oct 2022 01:27:19 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 19232175D; Tue, 18 Oct 2022 01:27:25 -0700 (PDT) Received: from entos-ampere-02.shanghai.arm.com (entos-ampere-02.shanghai.arm.com [10.169.212.212]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 265D43F7D8; Tue, 18 Oct 2022 01:27:11 -0700 (PDT) From: Jia He To: Ard Biesheuvel , Len Brown , Tony Luck , Borislav Petkov , Mauro Carvalho Chehab , Robert Richter , Robert Moore , Qiuxu Zhuo , Yazen Ghannam , Jan Luebbe , Khuong Dinh , Kani Toshi Cc: James Morse , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, devel@acpica.org, "Rafael J . Wysocki" , Shuai Xue , Jarkko Sakkinen , linux-efi@vger.kernel.org, nd@arm.com, Peter Zijlstra , Jia He Subject: [PATCH v10 1/7] efi/cper: export several helpers for ghes_edac to use Date: Tue, 18 Oct 2022 08:22:08 +0000 Message-Id: <20221018082214.569504-2-justin.he@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221018082214.569504-1-justin.he@arm.com> References: <20221018082214.569504-1-justin.he@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747014016756197238?= X-GMAIL-MSGID: =?utf-8?q?1747014016756197238?= Before ghes_edac can be turned back into a proper module again, export several helpers which are going to be used by it. Signed-off-by: Jia He Acked-by: Ard Biesheuvel --- drivers/firmware/efi/cper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/firmware/efi/cper.c b/drivers/firmware/efi/cper.c index e4e5ea7ce910..053eae13f409 100644 --- a/drivers/firmware/efi/cper.c +++ b/drivers/firmware/efi/cper.c @@ -290,6 +290,7 @@ int cper_mem_err_location(struct cper_mem_err_compact *mem, char *msg) return n; } +EXPORT_SYMBOL_GPL(cper_mem_err_location); int cper_dimm_err_location(struct cper_mem_err_compact *mem, char *msg) { @@ -310,6 +311,7 @@ int cper_dimm_err_location(struct cper_mem_err_compact *mem, char *msg) return n; } +EXPORT_SYMBOL_GPL(cper_dimm_err_location); void cper_mem_err_pack(const struct cper_sec_mem_err *mem, struct cper_mem_err_compact *cmem) @@ -331,6 +333,7 @@ void cper_mem_err_pack(const struct cper_sec_mem_err *mem, cmem->mem_array_handle = mem->mem_array_handle; cmem->mem_dev_handle = mem->mem_dev_handle; } +EXPORT_SYMBOL_GPL(cper_mem_err_pack); const char *cper_mem_err_unpack(struct trace_seq *p, struct cper_mem_err_compact *cmem)