Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp726289imm; Thu, 13 Sep 2018 06:54:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZkJfRRCKEIMwzsKJVoeNEC5whdtcY9LhSQZdEgIny8su6IRcB2ZUhpm9izCe7UDIAm+U7K X-Received: by 2002:a63:dc53:: with SMTP id f19-v6mr7307703pgj.56.1536846844948; Thu, 13 Sep 2018 06:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846844; cv=none; d=google.com; s=arc-20160816; b=Fu0wveVKpCe1BhP0OA1xds8UlvZ1WEW2BQKNN8c3rcmo61/PJjdyEEUSv3ao/zyxwg zIF97Gj7daozzalCNbfMlxCJCThILKuO8O/yn+sLAubO3xjNqIpbUNbVq1ye57s30wfH G2Kr/njh1WjwZipgZST5JQ9Uu7uwplIZMrJYchI2RO29GH33F1TUZYLqnAU/9PopO9ud dpzLbWBy87CyUIBtWdu9LAHkFG9cA3R6MstMziOKlxo5+XXdleEw5tS0EvnHCAfNrlml +y0Q/Ovq+zSWMHJ7uWcKQ9qqZv2UQDX8QIy6j2YJgNG0/kNbGWzghkG9R6q7UHd6IXPy q99A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=pdfQTLCgpKXRb96Flq+fESVzUMci2BxNUozo9mZD78Q=; b=Cpu8ST1cg19X7GwW7IIN6jAzcG9KEqB8S2yr8753jv0Iw1+91NWKSvtJBa+p9PuScq 5o9DCaPQad6W0WXUa8asAuakOyF3CL0EPXfvvw9mDUZ3TjOEC1XOOtQuyNK5rjrs71w9 lRaE2d04Kooszbr48jRZtjTdQmOFHlxhSNS/6mZpWNmaLVV4F1jOHVBqDeXAkcZYlxnD 2lF/qEGtBSNI4uNfHPWQqCxHRnKK2630C7/G2sW6IfLVF/+r4GJaRE6czTq6jKZiGBUD tJ3pKjKVQw6C/9Ck14D6GIdhp2dnH1jBjxT3sUIvW6Vs2kMbpn5pv76ssabB+wLylZfs qCCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16-v6si4633223pgl.508.2018.09.13.06.53.49; Thu, 13 Sep 2018 06:54:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731130AbeIMTDS (ORCPT + 99 others); Thu, 13 Sep 2018 15:03:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33718 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728810AbeIMTDR (ORCPT ); Thu, 13 Sep 2018 15:03:17 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8155BD10; Thu, 13 Sep 2018 13:53:41 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Thomas Gleixner , Nicolai Stange , "H. Peter Anvin" , Borislav Petkov , Sasha Levin Subject: [PATCH 4.18 054/197] x86/mce: Add notifier_block forward declaration Date: Thu, 13 Sep 2018 15:30:03 +0200 Message-Id: <20180913131843.691768804@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann [ Upstream commit 704ae091b061082b37a9968621af4c290c641d50 ] Without linux/irq.h, there is no declaration of notifier_block, leading to a build warning: In file included from arch/x86/kernel/cpu/mcheck/threshold.c:10: arch/x86/include/asm/mce.h:151:46: error: 'struct notifier_block' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] It's sufficient to declare the struct tag here, which avoids pulling in more header files. Fixes: 447ae3166702 ("x86: Don't include linux/irq.h from asm/hardirq.h") Signed-off-by: Arnd Bergmann Signed-off-by: Thomas Gleixner Cc: Nicolai Stange Cc: "H. Peter Anvin" Cc: Greg Kroah-Hartman Cc: Borislav Petkov Link: https://lkml.kernel.org/r/20180817100156.3009043-1-arnd@arndb.de Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/mce.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/include/asm/mce.h +++ b/arch/x86/include/asm/mce.h @@ -148,6 +148,7 @@ enum mce_notifier_prios { MCE_PRIO_LOWEST = 0, }; +struct notifier_block; extern void mce_register_decode_chain(struct notifier_block *nb); extern void mce_unregister_decode_chain(struct notifier_block *nb);