Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1049528rdh; Mon, 25 Sep 2023 01:20:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIGBku2NVBPWt9aoMxVgZDff/9hm8FmIYi8hk7Ok60hN8uLIQxvY0QRfzojNsxmWdE+5ta X-Received: by 2002:a05:6808:1a21:b0:3a7:d857:c5a3 with SMTP id bk33-20020a0568081a2100b003a7d857c5a3mr9213069oib.20.1695630057823; Mon, 25 Sep 2023 01:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695630057; cv=none; d=google.com; s=arc-20160816; b=RYGjhrZJMJkMYJpAawqyeJ06WQr/IM1+Nd2E0wuQnvWWAJ2/g7ZT31Sq7rh1xLTwaF yy9qHFb63qUZtDhXaTvWouOgbmb25zzO3KBcnKnmJOHrRXgblKAmAHnIWWk10Cawi8pP y8RDOpK2VeXiyxyBw4/+PXGitmtTr50tFxgpT+XxcyVsXQ8zbSmtlHuU9Fyd7Enqe5aU HBuMC77t2yop7ORM3OCLxpaUUPJUAvmtEgwvhzxMUUZU7P/OYblY3gDvIxiR7DIGHak0 qwgTTahUeLwy8GzhvkV6kt01dM7u02vM+cQ6arN6QE1Jis8h8nY9KLHU6XdH+8VFk7GZ ZaoQ== 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.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id k5-20020a632405000000b00573fdbc93c0si9735431pgk.892.2023.09.25.01.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 01:20:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 8DB5880B8DF3; Mon, 25 Sep 2023 00:45:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232549AbjIYHpR (ORCPT + 99 others); Mon, 25 Sep 2023 03:45:17 -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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 25 Sep 2023 00:45:26 -0700 (PDT) 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 */ -- 2.41.0