Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp714873imm; Thu, 13 Sep 2018 06:43:38 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda7qOFlzVBLeJ4gcUMO68pNG9KZ16PeXf/vkhxhZgUva7LVFC73k5gheS4MijrpQKZAHLee X-Received: by 2002:a63:4c54:: with SMTP id m20-v6mr4749637pgl.292.1536846218157; Thu, 13 Sep 2018 06:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846218; cv=none; d=google.com; s=arc-20160816; b=NBDMKybsEDEFlkwmhlWwbyjOfLOxFkaeotH3CWgz8AzdvbPBnFL75FlLiC5ei9dXBZ nzfzISB23BHuVTyWahjupR85JCEoTCJe4NE2Wx0ytxKnD6JKdNyCGtOTxmeeilhX/EWR JyTeEbkCBeeI7xtiEtG2g0VU3G5MAhKQo/EmJDOfXlSz8VJoaWywZmNzddAOb08ZL+Uh zWZb8qIZDV3qLXgsEb58M+fNiY0B6HIKgnzuTf5Ll+m38JzBMwCuDlJ+R180C9ATH+x1 6kLR3wmv5lbqBOQRBJPLq5COMzL/qxrSptwN06qKbUWYVck0pQQD3zRLjfPFBqIvgTNB 8jbQ== 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=lzLDsB7QKARgMT0R21lHsqHkcrQOScpcqogepU8iMZE=; b=k9iTX8XKX8fwdLBDkzNsJGbtMxuTUiakRJlrHEWgrsIywMNN6qBBV3g0FhDIotJEHm lHQTQDWi40hCPJKvPqQ+IX4fNxrdrb/csjPoWWsf6+oUwk9k3/1r+mkZ5MFEdvFz7HBC HRyqlBu0F7LesngrhZYplSB/0I3KG+dYkLQOzfZ1scRx9n+Bo58jYoXBlg6THKUAr9P+ EuShIozI+x8rY1HmETf7ZDU30uEKcnwL4wISCKZgWo5mFIaeqBpcfTA8ryXkoZtQcRAD rhfDYni3RsF+kW6lL1eTKruEHmAcefVbkpChp3+QrEBMe0WR3tfrIkj98bPkU5UmBeEx 5dmQ== 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 b27-v6si4384483pgm.582.2018.09.13.06.43.23; Thu, 13 Sep 2018 06:43:38 -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 S1729825AbeIMSwo (ORCPT + 99 others); Thu, 13 Sep 2018 14:52:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60310 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728860AbeIMSwn (ORCPT ); Thu, 13 Sep 2018 14:52:43 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 63C6ECF3; Thu, 13 Sep 2018 13:43:11 +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.14 032/115] x86/mce: Add notifier_block forward declaration Date: Thu, 13 Sep 2018 15:30:52 +0200 Message-Id: <20180913131825.641023887@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131823.327472833@linuxfoundation.org> References: <20180913131823.327472833@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.14-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 @@ -200,6 +200,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);