Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp58276rwi; Wed, 26 Oct 2022 20:32:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5H9yi4gjy3PWG0o7qfPWkZ28xEeTH7PKHF7ZRwy0XWMDjJ+Lbl9bdyiD3I8pHOkVmBaVE+ X-Received: by 2002:a05:6402:254f:b0:45d:3044:d679 with SMTP id l15-20020a056402254f00b0045d3044d679mr44806540edb.137.1666841559279; Wed, 26 Oct 2022 20:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666841559; cv=none; d=google.com; s=arc-20160816; b=wY2YTllfdV7LDHGt3ek42AuYvnxzXXJ8fyIDfk6Rfo9zvhinRXp5z5E6EoJpC2Si+T jYN75UFGbJi/YgrJ2Yhg8VtRquiDwE3y3T+rexOjrrO0DkU9UneEgrFj/66fMoqXA0ek izQe6bGgq+i81TaohstkoKs5XkzQWjl2PUj4OnRXvzEGft7ScTnAG+EVdkAA3dct2eNG y78kzlrINhwuSD/0N96C6GVqbNn8nixl/JsVbPTe73T2rnTh/AMlF+lkwL4hn4AkWQQg y9s18wprRdxKMPV8PUcEkEH1/R7nlO8WVC7L23H2ebUdvtSjy8VMGyd42/H0bMW32OcQ JemQ== 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 Return-Path: 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.32.13; Wed, 26 Oct 2022 20:32:39 -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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 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; -- 2.20.1