From patchwork Mon Sep 25 07:44:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuai Xue X-Patchwork-Id: 144253 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1045020vqu; Mon, 25 Sep 2023 00:58:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAvigXv+FKS0mcHzFrmHM+IPeJ3+fcNnVCp9sDPEujjwr1L/8nxeqTyYLwNKddUa6gqWII X-Received: by 2002:a05:6a00:1505:b0:686:6e90:a99b with SMTP id q5-20020a056a00150500b006866e90a99bmr5245557pfu.25.1695628735825; Mon, 25 Sep 2023 00:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695628735; cv=none; d=google.com; s=arc-20160816; b=RWwfu4iePfGMHWsxX22g0DMxmQ7mUNx+qwA4iHEHJ4snEDO67uZKUlFu7K95xhhNd/ xQuU7Nm/+w/5XYt5DUu8wCtkUvTG4zv3zn9N1yo1aRZEAYSz9jbQtwrrHH3u+abGp2Mu prkxGz6PH2yOHDLF18KxilE8sXxfE34qYsB1L7SpNYtqpsS5fVncYwhbtL8wDsmFIumE 2hr0b/kGgDwEIpeB3WVhEpzj+9sXAvBrQASgA3Ry2LIycotijbiWmYuv3sMkFSe9My+K uYp6K2qYI7gadTcv2cBMi6lLhAVopPhjj18yXhk5UhiVitOoBJ1yf+FORw40fISvI1X6 wUpA== 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=TSCC7sBHUUkWNT42neO6W7GplSGMhDrW9OglNk18Kaw=; fh=FxxuQyV5zt5uOZlISi71Gibj4pONM7+jzC8ls2GxgWY=; b=FV33zMWC3QE+FfZMrQt38BSxCVY82O8AlHHDtqofEr0J5uLMPyRnMP7IA6KiVKNBSY GYUgrd8EsNf1Spj24cbR4DT2w3lKC2lXN1kNgFM9lAKFdAbfq8RUJ5Yk8x8854YKzrdP FZDLtShsE1zcz9uA/aP2gtwgveL+ipGy24Wlj1qFFdmoWa5vppPcwZwZ+bLVlEj86ZSD lU6QAln/AiVkcWC587QGf9M832cZNPbfMXUjkhJSPjB8umtL12z2SED7+p8gWkGbZJpV uAV11v4e6M0+392/wgCNttZy/F/z4MBt7Pvhk5M+l2mqo8padOybQGjIdJ/SjU/dnUy9 bSww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id cu4-20020a056a00448400b0068a6f6d9f85si9515070pfb.140.2023.09.25.00.58.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 00:58:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 605D98050025; Mon, 25 Sep 2023 00:45:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232558AbjIYHpS (ORCPT + 30 others); Mon, 25 Sep 2023 03:45:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232520AbjIYHpC (ORCPT ); Mon, 25 Sep 2023 03:45:02 -0400 Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A0AC112; Mon, 25 Sep 2023 00:44:46 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=22;SR=0;TI=SMTPD_---0Vsmvt0t_1695627882; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0Vsmvt0t_1695627882) by smtp.aliyun-inc.com; Mon, 25 Sep 2023 15:44:43 +0800 From: Shuai Xue To: keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, rafael@kernel.org, lenb@kernel.org, james.morse@arm.com, bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, ardb@kernel.org, robert.moore@intel.com Cc: linux-hardening@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, linux-efi@vger.kernel.org, acpica-devel@lists.linuxfoundation.org, xueshuai@linux.alibaba.com, baolin.wang@linux.alibaba.com Subject: [RFC PATCH v2 6/9] ACPI: APEI: GHES: export ghes_report_chain Date: Mon, 25 Sep 2023 15:44:23 +0800 Message-Id: <20230925074426.97856-7-xueshuai@linux.alibaba.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230925074426.97856-1-xueshuai@linux.alibaba.com> References: <20230925074426.97856-1-xueshuai@linux.alibaba.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 00:45:31 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777995597260200604 X-GMAIL-MSGID: 1777995597260200604 Export ghes_report_chain so that it can be kicked by other drivers. Signed-off-by: Shuai Xue --- drivers/acpi/apei/ghes.c | 2 +- include/acpi/ghes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 306bced16884..8acd3d56719a 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -95,7 +95,7 @@ #define FIX_APEI_GHES_SDEI_CRITICAL __end_of_fixed_addresses #endif -static ATOMIC_NOTIFIER_HEAD(ghes_report_chain); +ATOMIC_NOTIFIER_HEAD(ghes_report_chain); static inline bool is_hest_type_generic_v2(struct ghes *ghes) { diff --git a/include/acpi/ghes.h b/include/acpi/ghes.h index 3c8bba9f1114..151567353e33 100644 --- a/include/acpi/ghes.h +++ b/include/acpi/ghes.h @@ -126,7 +126,7 @@ int ghes_notify_sea(void); static inline int ghes_notify_sea(void) { return -ENOENT; } #endif -struct notifier_block; +extern struct atomic_notifier_head ghes_report_chain; extern void ghes_register_report_chain(struct notifier_block *nb); extern void ghes_unregister_report_chain(struct notifier_block *nb); #endif /* GHES_H */