Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6375008rwb; Mon, 14 Nov 2022 19:36:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jGDEetbXEH0bl3SAQgzXHQbhwr9iqrzloFVA/cmWzJj8R9QJZ9RzyfMTQLG9DRrd6f+jT X-Received: by 2002:a50:871d:0:b0:461:d21a:c0f3 with SMTP id i29-20020a50871d000000b00461d21ac0f3mr13136551edb.71.1668483391792; Mon, 14 Nov 2022 19:36:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668483391; cv=none; d=google.com; s=arc-20160816; b=MuaTeWIrzyDeMl++wqcFmi/tuWuUpusfE3s9mRWE7b89l9Ik+Jn/QAH/FBUxP9uOCK 5Af8Nzsq54uExGBHSQk7/xiHnMR6IJqH+vr3MpfZfRmDrbmvlLqEO6FgezYoJAoEP/O7 yxgkJeVx5LGzwBuiXpiliWF5xRUVNE18vniSdR777uFRm4DwerO7WK/Sxz/HV7b1Ucly AyexKxaI+C+OX+FAJSfn6Cj8To4M9Ssuid7MVkSOta+LUCk4iLdHSMMjSymXOT88wyXJ 9gOWh5prPahLxX4+FsqtlTOQliV8QJO9LvG/8ut/BVynvSfglSdMPF1U59NyPkC+AeEI lYSA== 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=1gtq80C++urR9sHk8o/PKLx957qG6+oLcFWuiCvgeX0=; b=eN/b74Qlukng66Gn7KRd4HJihOxeUQa4TtatIawRRjkAEzL81teJy5IdYT65IdjVdD XgcF+1QHIaZPS9z50pax+wlW/8GgJi4haUt/InfNRS4KUQFJ/DsUlp4dpYjz0CgGGw8W 9gOJTen88uqwA1mdWFKlRcGacb7ipzeIOvW2O2T1bFZJbqzMYmfZsyLD5fEIYr9WIK5u 1Af1hMogaARdurOqBaYCEawYvCE5tI2EQqdACdFpAQk7x59Tk/nzukWi2BokDcfNLwpD lG8/Cjdw1McvKnymAPcMY8JJ4k7S8wyip+OWRPAaWiWhs02fQrPLtPz8HRPWm6VpoRB/ JQAg== 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 ga7-20020a1709070c0700b0078a19032c70si12094010ejc.334.2022.11.14.19.36.10; Mon, 14 Nov 2022 19:36:31 -0800 (PST) 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 S232355AbiKODM3 (ORCPT + 88 others); Mon, 14 Nov 2022 22:12:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237288AbiKODMH (ORCPT ); Mon, 14 Nov 2022 22:12:07 -0500 Received: from mx1.zhaoxin.com (MX1.ZHAOXIN.COM [210.0.225.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F04752DCF for ; Mon, 14 Nov 2022 19:12:05 -0800 (PST) X-ASG-Debug-ID: 1668481921-086e2353248d070001-xx1T2L Received: from ZXSHMBX1.zhaoxin.com (ZXSHMBX1.zhaoxin.com [10.28.252.163]) by mx1.zhaoxin.com with ESMTP id AfkY9x5666383doF (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 15 Nov 2022 11:12:01 +0800 (CST) X-Barracuda-Envelope-From: LeoLiu-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 Received: from ZXBJMBX03.zhaoxin.com (10.29.252.7) by ZXSHMBX1.zhaoxin.com (10.28.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 15 Nov 2022 11:12:01 +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; Tue, 15 Nov 2022 11:11:58 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 From: LeoLiu-oc X-Barracuda-RBL-Trusted-Forwarder: 10.29.252.7 To: , , , , , , , , , , , , CC: , , , leoliu-oc Subject: [PATCH v2 2/5] ACPI/APEI: Remove static from apei_hest_parse() Date: Tue, 15 Nov 2022 11:11:57 +0800 X-ASG-Orig-Subj: [PATCH v2 2/5] ACPI/APEI: Remove static from apei_hest_parse() Message-ID: <20221115031157.1666789-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: ZXSHMBX1.zhaoxin.com[10.28.252.163] X-Barracuda-Start-Time: 1668481921 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: 1632 X-Barracuda-BRTS-Status: 0 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0890 1.0000 -1.4588 X-Barracuda-Spam-Score: -1.46 X-Barracuda-Spam-Status: No, SCORE=-1.46 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.102147 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 Each dev with AER capability needs to call the apei_hest_parse function to match and extract register values from HEST PCIe AER structures. Therefore, remove static from apei_hest_parse() so that it can be called in another file. 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 ab1ffe6923ce..1ac9afbff448 100644 --- a/drivers/acpi/apei/hest.c +++ b/drivers/acpi/apei/hest.c @@ -131,7 +131,7 @@ static 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