Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5174144rdb; Sat, 16 Sep 2023 06:06:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHz7FUvRg6fwScRnsUDzVzxS+STtszyIOclzOKsnWfR58tB/xnAMdiHoaVLW7XFc/HbccZH X-Received: by 2002:a17:903:120d:b0:1bd:ae77:42d3 with SMTP id l13-20020a170903120d00b001bdae7742d3mr5542077plh.61.1694869603441; Sat, 16 Sep 2023 06:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694869603; cv=none; d=google.com; s=arc-20160816; b=X5llo0e4E1IbMZyar8jXYZn3QMK4psAtHQgFaF0qO7z/3uaZycpzKbnH0HpIfNGudG MLC8bouCSzxAv3Bm+5r/z3Y44W++QvYQ1ZJGqc8+mdQhOGfZyvzfpGXYLJFZZlAHsiY+ VtTwfOPk0Yyz4PqXyV0leL/Wu20UaBFc5AKicVe5SFTOFJOafd2DWWzPWRC6pi4jlkP4 jaJUXpttT3saGQmxnwRhIx+y94JpJo1RKmU6Fm3ukys+fqrHm+ZDPjPH6t2l1ltGDv7T 6mLh9+3uKTymWG00VwHppAjE+92RYVW4G2LCPY1I6T2J7PIEy/gRRQ3k5peQkpI2e0QP 0/eg== 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=T5KxuboV1LYH0PzP/5XReDtQg+eWGkJTJ+T9XjTIvFQ=; fh=FxxuQyV5zt5uOZlISi71Gibj4pONM7+jzC8ls2GxgWY=; b=khsxOMmzKeGabQxgBi5r17QLG5fstjc3WAR68UXNWRwmit4K2T7xMSbfjI3OArMfVT AZ1d4t1gXXitSQyVf5JP0EWjO44xZGHaYF4V0Umd9Y730XltIsMD5U9hXSAXl/5XDd0b TKC5oDVyrzzpxZFMKalC4lKpfag7R/pwDWjcuZJkOdbpVXSwbnQSNFsWl7K8vjtsYCMo HWX0Kuh/KSPnsV9GoJMOCM9irdg0T95DJz1rkHtXSxTbh9p9Hm8kYCcsSc6EhuVoBUwZ 1qtE/yjwPyD1FY6/hCOi2i/KrmWiE4zhoDjNNnXm6P7t43oeuE8nSDWkSG+Z+ENPyvCY 1BbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id ha11-20020a17090af3cb00b002747da1ef70si4075439pjb.16.2023.09.16.06.06.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 06:06:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 3D93682CDF7C; Sat, 16 Sep 2023 06:05:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239353AbjIPND7 (ORCPT + 99 others); Sat, 16 Sep 2023 09:03:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233681AbjIPNDl (ORCPT ); Sat, 16 Sep 2023 09:03:41 -0400 Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 826B91B2; Sat, 16 Sep 2023 06:03:35 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=22;SR=0;TI=SMTPD_---0VsA36vt_1694869408; Received: from localhost.localdomain(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VsA36vt_1694869408) by smtp.aliyun-inc.com; Sat, 16 Sep 2023 21:03:29 +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 6/9] ACPI: APEI: GHES: export ghes_report_chain Date: Sat, 16 Sep 2023 21:03:13 +0800 Message-Id: <20230916130316.65815-7-xueshuai@linux.alibaba.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230916130316.65815-1-xueshuai@linux.alibaba.com> References: <20230916130316.65815-1-xueshuai@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 agentk.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 (agentk.vger.email [0.0.0.0]); Sat, 16 Sep 2023 06:05:53 -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 16701f889b73..80aeb06a1f76 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