Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4899688rwb; Wed, 17 Aug 2022 07:51:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR6qYOarYaPYAA/HPsq7wh2mkSQxvxCVG41gahQ5mIv28fslUkoWcfBqAdYBjle0g5tohtdd X-Received: by 2002:a17:906:847a:b0:730:9a59:3958 with SMTP id hx26-20020a170906847a00b007309a593958mr16850521ejc.62.1660747874844; Wed, 17 Aug 2022 07:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660747874; cv=none; d=google.com; s=arc-20160816; b=qzQxd48+hRPbywV2LxZhz5OZzsa/23i+AXRfsVCgXSd0Sb9TAqQZMnxIThn1yi0KWN 5B3hgDiOSrHQKr6RrOEaTtMsClsPWOIF+H3sqt9nctaTG8mYtqYI/jBwC839lBoc4BIG Oyvdi+X+4V7/KZ5KesHsGxecefEd70U8NrYLcG5ke25g6B/gA0E7O79l4EYHnTnqr3a4 S4IyYpjDYgRqyt0BfD4/XaeIwFPLbqrCiHExPbaYpd6zy9GySN+UbkubOvk/gJJWWXKo 3YWzeUOR55Gg1JGDZq+Ky2QrBcy3xl2RuFxBUmDcvfpGRpjIeOSUsRkq65G0gnFpyjvA WTLA== 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=rqoIyOkMqzkJU/j7y6QBbSuRz6ar62nQ08qUSyU/9ak=; b=Q4JhnH679wB2ZLDUtJPcwH3DFMLZEY94vrZzIIfotDSzhKqjjNGiiJg8CAkcuUTMW1 AW1WQJ7HZ/HiHgCij41kh7jgE5HFrYSqtFoAJJ5TUD3C+q0uHNFRozrqOmddxXJ/G5hS jUfUcfVRP0gMyU4bnEPXNpQ767iU7pIy2Yk9OJvkqUj2DC3gJMRurs/EtprmHNmgyaEi HBO0SWVr58qQV6WI3g8LiWsBjXAfrb7DqZOnkwWZPGHOzjeexC7XWI5ky3wwOgT7EikB UcdyGFS4yIyTEHgRLtUBL5PE1Mc1K/gdDoFB+YnkeDjO6Qa/pRKtlxLHiJ2CdS8Pcjaw 7jnA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb41-20020a170907162900b007392f9ad702si3811605ejc.741.2022.08.17.07.50.46; Wed, 17 Aug 2022 07:51:14 -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 S239728AbiHQOfe (ORCPT + 99 others); Wed, 17 Aug 2022 10:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239806AbiHQOf1 (ORCPT ); Wed, 17 Aug 2022 10:35:27 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4BF3A205D1; Wed, 17 Aug 2022 07:35:26 -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 E0809113E; Wed, 17 Aug 2022 07:35:26 -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 1850A3F70D; Wed, 17 Aug 2022 07:35:19 -0700 (PDT) From: Jia He To: Ard Biesheuvel , Len Brown , James Morse , Tony Luck , Borislav Petkov , Mauro Carvalho Chehab , Robert Richter , Robert Moore , Qiuxu Zhuo , Yazen Ghannam Cc: 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, toshi.kani@hpe.com, nd@arm.com, Jia He Subject: [PATCH v2 1/7] efi/cper: export several helpers for ghes edac to use Date: Wed, 17 Aug 2022 14:34:52 +0000 Message-Id: <20220817143458.335938-2-justin.he@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220817143458.335938-1-justin.he@arm.com> References: <20220817143458.335938-1-justin.he@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,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 Before the ghes_edac codes are modularized, export several efi/cper helpers to avoid linking error of ghes_edac. 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) -- 2.25.1