From patchwork Mon Oct 17 13:01:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin He X-Patchwork-Id: 3437 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1436840wrs; Mon, 17 Oct 2022 06:07:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6snSXEa1gYIfFYUfHLlVHdgtu0Mk7mQpsLYfG4WuSIsEoaVKaeAUKkDYpUqIrcGuNJAfPC X-Received: by 2002:a17:903:2285:b0:185:44df:d916 with SMTP id b5-20020a170903228500b0018544dfd916mr11829983plh.120.1666012035786; Mon, 17 Oct 2022 06:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666012035; cv=none; d=google.com; s=arc-20160816; b=hBiPhHHSoEZnCtS4RHmp4/kscHKYou4FKZD4a1L9Ptk78V6Plquex15wNDBq9GMr/8 jtURML5AqurFbIohSmholmgyhQOZX80k0Op3euiAKp9DchWdscCzHXUtdm+h/8n1itoj 3pOMccciScjdfWCECgww2HYjrtbcv1uXsnkFfZoRYLVcjo4kVhYHdhcMveqwWwINZpUa vVD4L2kofDlUchAuK1U7gZhCHXwGCbJHyepVjYXtlHzsiNoVeosl4yTlqizHZ0sfAlMo wIgEIQDGWdhoexu7mLkT8vfS348ZT5F/GzOi2l+5FgrHpypGE/GGw67IzTW+osCGTmoG 88mw== 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=JQXuiEQJg3h+Ppzpk02Y1hTrHyZEfnb+aDEqHEtyGBAtTHmxrSr4LOflciY7klrH9M 3UKsHaPgA3ujbVDVb3WvNedPNaqdYjDim4SI52pDiFFbJ9sVqox85obr6IPanYdsOisW O9L6A7Zulj5uY+80MaG1Er15ZU3HWuXTjxd26s+I5hoRo2BsNvWO43gNmtzu+X5fklq+ eftaFivnM9B70NQlPoGliJHkS+82hzVqO3FDzjZLZkeK8G0/tTljhPlzU87OYlfc0YO3 8Up6OHqwk7PQXaiSFrQC9w+xy5pBi8FlTojmH4XoQ1DHOjdxKA96fIYiJjOpGzATZkNk 2zEg== 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 q15-20020a170902dacf00b0018018272902si13647065plx.554.2022.10.17.06.06.59; Mon, 17 Oct 2022 06:07:15 -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 S230481AbiJQNCI (ORCPT + 99 others); Mon, 17 Oct 2022 09:02:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbiJQNCG (ORCPT ); Mon, 17 Oct 2022 09:02:06 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5E8492608; Mon, 17 Oct 2022 06:02:05 -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 591511042; Mon, 17 Oct 2022 06:02:11 -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 66B903F67D; Mon, 17 Oct 2022 06:01:58 -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 v9 1/7] efi/cper: export several helpers for ghes_edac to use Date: Mon, 17 Oct 2022 13:01:34 +0000 Message-Id: <20221017130140.420986-2-justin.he@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221017130140.420986-1-justin.he@arm.com> References: <20221017130140.420986-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?1746940236243330384?= X-GMAIL-MSGID: =?utf-8?q?1746940236243330384?= 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)