From patchwork Sat Sep 16 13:03:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuai Xue X-Patchwork-Id: 141045 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1648231vqi; Sat, 16 Sep 2023 06:05:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMeNqjiIhml9VrLGn0B9iCTOkOZ/YdyGVEG2HrC2bWuUmjV35UK35+ZQMEInGs7Wt1pZj1 X-Received: by 2002:a17:90a:f196:b0:26b:3751:652a with SMTP id bv22-20020a17090af19600b0026b3751652amr4191417pjb.38.1694869552812; Sat, 16 Sep 2023 06:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694869552; cv=none; d=google.com; s=arc-20160816; b=oe2in3/wSYkrsw/mvG+Hqy7NpzMwSx6CDKffsEnP7uTQVXf76drOVON+/yBTUHBz4p k83I2bFQBgqjdMcmEaHAl68qd91Wa0H3R++gZM2hp6xeMOM8OR2SHiE8+/ztsd+pCjaF TVOIP3eb+ph21NuZgJwkrdqwg6ff+5veorOYlB5qoQhdsccx6RfYqcTTpIehVYz97LyV n+5Q0UH9hRBgIbOO6oYeugBKD+4QUkylScSDbGx3O86l/DdtlNRedM9LG5pZcbRuBA9H kBqFzlIUmkzV3ZEG/PG6dYV4CLeRwcw+I12eKDvf0XiyhodymBkBWBxe+Ai6gtudRaAB 5NoA== 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.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id oo17-20020a17090b1c9100b00263c23a5693si5359231pjb.13.2023.09.16.06.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 06:05:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 6E4BF8357673; Sat, 16 Sep 2023 06:05:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239228AbjIPND7 (ORCPT + 29 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 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sat, 16 Sep 2023 06:05:50 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777199536415040073 X-GMAIL-MSGID: 1777199536415040073 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 */