From patchwork Thu Oct 27 03:15:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: LeoLiu-oc X-Patchwork-Id: 11532 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a40e:b0:83:7221:86ba with SMTP id ck14csp205802dyb; Wed, 26 Oct 2022 20:31:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6DjiKABlrFwWX12PmfT2kZ5NM/fGo35HIvIrRKW1TzrZJMJhrwEEQIdfH1MSpQFk/D9O+V X-Received: by 2002:a05:6402:4150:b0:44a:ec16:def4 with SMTP id x16-20020a056402415000b0044aec16def4mr44288177eda.21.1666841508746; Wed, 26 Oct 2022 20:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666841508; cv=none; d=google.com; s=arc-20160816; b=LuKWlBxKLjh6+2pnyAvTgezmBKT5dHUust/e9mksSVOoxL037zuGZZzbDfpRBNzoXi 7BLsZfhVQYlXj1OzY6Jy0PKskpwg6FkBZX3RuvsNK9a6RAGjtW7EeN1h2WYuXCR5rI54 m94Z9AFpo2UKrTNRzEFHfnkc1ClTKSjyRxm07f6/u7dsyuZxV+8uFvYxAGuqffVY3Zpo iGrBLIqTEcJO+p0u2QS1gWwraGnUdIOev8k8z9HbaTgKat2sb7q1OwYm0ffbnsyy7hwl sI3yFlCH0B3BH1qV4uC3l6R9J/dYGNsZkUPeAxaZWndvjekXqOyy26mBCorjT/PKiUSw tf2w== 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=4ypLlmMKBWrU5uipjLTZRXwKVh33cLvwLo6rTcEvsj4=; b=dDnNN/mT9tE3sl6qndikQxEJdvr9pZTmFwHQHEDd9J/UIBWLyRNxyucORoojojAGjV eMyPhoHRaQltzf6eUJLW0LlvHMyVTmhFWMfIKICmAwrIhVsmbxzxPwozXxzcuVSHDK2z pjSXXlDb7VNPVVKruNxdeebD/F57/2ESdYqowavr6byL02YWXyTUOI9XqR+C05+XPYhq LH/a11/eVqbojyFxBLp6ugQ1fP+qIYSa/m17Lk2qUxayyywrIv6y65xF6F+f0zQ6GPSd ptTpEgkONMmZocgK1dcV4r1KHmwLtJ0wTiTGV/a6F+1gKpecJ/VPeqqeSTbaEHubgd4N h0pw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a509b42000000b00453688643fasi408369edj.260.2022.10.26.20.31.24; Wed, 26 Oct 2022 20:31:48 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234043AbiJ0Dap (ORCPT + 99 others); Wed, 26 Oct 2022 23:30:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234289AbiJ0Da2 (ORCPT ); Wed, 26 Oct 2022 23:30:28 -0400 Received: from mx1.zhaoxin.com (MX1.ZHAOXIN.COM [210.0.225.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 466DB24091 for ; Wed, 26 Oct 2022 20:30:05 -0700 (PDT) X-ASG-Debug-ID: 1666840542-086e2353264ba10001-xx1T2L Received: from ZXSHMBX2.zhaoxin.com (ZXSHMBX2.zhaoxin.com [10.28.252.164]) by mx1.zhaoxin.com with ESMTP id Lts6Ns9lXKZauHYT (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 27 Oct 2022 11:15:42 +0800 (CST) X-Barracuda-Envelope-From: LeoLiu-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Received: from ZXBJMBX03.zhaoxin.com (10.29.252.7) by ZXSHMBX2.zhaoxin.com (10.28.252.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 27 Oct 2022 11:15:42 +0800 Received: from localhost.localdomain (10.32.64.1) by ZXBJMBX03.zhaoxin.com (10.29.252.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 27 Oct 2022 11:15:40 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 From: LeoLiu-oc X-Barracuda-RBL-Trusted-Forwarder: 10.29.252.7 To: , , , , , , , , , , , , CC: , , , leoliu-oc Subject: [PATCH 2/5] ACPI/APEI: remove static from apei_hest_parse() Date: Thu, 27 Oct 2022 11:15:39 +0800 X-ASG-Orig-Subj: [PATCH 2/5] ACPI/APEI: remove static from apei_hest_parse() Message-ID: <20221027031539.2855883-1-LeoLiu-oc@zhaoxin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Originating-IP: [10.32.64.1] X-ClientProxiedBy: zxbjmbx1.zhaoxin.com (10.29.252.163) To ZXBJMBX03.zhaoxin.com (10.29.252.7) X-Barracuda-Connect: ZXSHMBX2.zhaoxin.com[10.28.252.164] X-Barracuda-Start-Time: 1666840542 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.35:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 1530 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.3834 1.0000 -0.0449 X-Barracuda-Spam-Score: -0.04 X-Barracuda-Spam-Status: No, SCORE=-0.04 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.101705 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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?1747810001777288060?= X-GMAIL-MSGID: =?utf-8?q?1747810001777288060?= From: leoliu-oc The purpose used the func apei_hest_parse() in pci-acpi.c to parse the PCI Express Root Port/Device/Bridge AER Structure. Signed-off-by: leoliu-oc --- drivers/acpi/apei/hest.c | 2 +- include/acpi/apei.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/apei/hest.c b/drivers/acpi/apei/hest.c index 0bfdc18758f5..3795690e8f0f 100644 --- a/drivers/acpi/apei/hest.c +++ b/drivers/acpi/apei/hest.c @@ -130,7 +130,7 @@ static inline bool hest_match_pci(struct acpi_hest_header *hest_hdr, return false; } -static int apei_hest_parse(apei_hest_func_t func, void *data) +int apei_hest_parse(apei_hest_func_t func, void *data) { struct acpi_hest_header *hest_hdr; int i, rc, len; diff --git a/include/acpi/apei.h b/include/acpi/apei.h index 8a0b2b9edbaf..e7896491ae52 100644 --- a/include/acpi/apei.h +++ b/include/acpi/apei.h @@ -37,9 +37,11 @@ typedef int (*apei_hest_func_t)(struct acpi_hest_header *hest_hdr, void *data); #ifdef CONFIG_ACPI_APEI void __init acpi_hest_init(void); +int apei_hest_parse(apei_hest_func_t func, void *data); int apei_hest_parse_aer(struct acpi_hest_header *hest_hdr, void *data); #else static inline void acpi_hest_init(void) { } +static inline int apei_hest_parse(apei_hest_func_t func, void *data) { return -EINVAL; } static inline int apei_hest_parse_aer(struct acpi_hest_header *hest_hdr, void *data) { return -EINVAL;