From patchwork Thu Aug 30 18:01:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 145555 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp196570ljw; Thu, 30 Aug 2018 11:01:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbM4cJ/q2HdLVfGMOGb6GhxEl0C0V2082S5C8YpjKjAqm366AJZR+8yfn+fARu+ynQx3nhD X-Received: by 2002:a17:902:b03:: with SMTP id 3-v6mr11158740plq.277.1535652109620; Thu, 30 Aug 2018 11:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535652109; cv=none; d=google.com; s=arc-20160816; b=dwRlwfZ8Q4LP+yGD2u+L4Ju3xpLi73inrTBi3OLJmRiyv3x0HlzmnP9566EXB5jans YmDL1ONjuDr0hjeqt0OZQe16LDfGJS28PUxFSSBlDAWVIlGisu9pwezs/3HMNUsGhR3v M0ERbdpTpZtxwkV/xn8TbdpwAccMFfYQ1HdTT9ZUAKVQXdJ72ql7mt0YcrGA7CN1mnAv l2VPEpKgIlRbLSa7B05QL0yXrV4YDutYftKrRk0GZs7p30+3HgeRQqmwvPEMhScQye7F Rn2hNi0LfUidIriYVIsn6WtLDq9qS8uYOAJ/4ikwAG5hfh0jX7uIWXeoxLipfkJBhxVX lt+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=/yODuDzt1l0pCzHWp3JyfMBOwzEkfmxuu8Lalhxj4wA=; b=iPO4goVPRhdFEcI6Q5NXMYE/u0ZJvLv2fVS31IOyTS3lPGAHD6OkBFNCgds1T9JKiv Z3QnsU6Zbj9d8rmTjufy7/pDhwdanXelv1IwBpB2d7Kktq6RsY/GWnI5cNoc5n1vCvBI dr2qLZIsGyvplhv8gR6OezINAaWD80Zlt7eeEWZetzR3rkdNMvtny34Npm/c6M61n2l6 fHlAu+m0L9StqxXxIXOrJcEEEsQ1bwDRqS9b67idzx4qmjEqUnh+ltIZUiHOks9RCz6p ZE+DFVizffyr0OBSYamlAVggbeyYQTtx5beMfQsZwuaDE7zIuEhr5/SWU/1N1WtrvLE4 8apQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=aEevyAWl; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64-v6si7831055pfb.224.2018.08.30.11.01.49; Thu, 30 Aug 2018 11:01:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=aEevyAWl; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727340AbeH3WFI (ORCPT + 13 others); Thu, 30 Aug 2018 18:05:08 -0400 Received: from mail-by2nam03on0132.outbound.protection.outlook.com ([104.47.42.132]:33758 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727338AbeH3WFH (ORCPT ); Thu, 30 Aug 2018 18:05:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/yODuDzt1l0pCzHWp3JyfMBOwzEkfmxuu8Lalhxj4wA=; b=aEevyAWlM1En85YFwHdpTNknzZyFQBBixD6PbV2uBQ4Cc16117MjdooKSSkmCUeMAL1QMFOh8OrPt8gslzEjAaldOx0izxdNQh/ZXMNxrEqHYAHDzGMZ+wduSCyJLpZkJa0Srijp6qAYCc3De1ecvIEZ9C2PgWBIiiRMvUTvRbU= Received: from CY4PR21MB0776.namprd21.prod.outlook.com (10.173.192.22) by CY4PR21MB0856.namprd21.prod.outlook.com (10.173.192.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.1; Thu, 30 Aug 2018 18:01:46 +0000 Received: from CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::7c3a:eea8:1391:1611]) by CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::7c3a:eea8:1391:1611%7]) with mapi id 15.20.1122.009; Thu, 30 Aug 2018 18:01:46 +0000 From: Sasha Levin To: "stable@vger.kernel.org" CC: Arnd Bergmann , Thomas Gleixner , Nicolai Stange , "H. Peter Anvin" , Greg Kroah-Hartman , Borislav Petkov , Sasha Levin Subject: [PATCH AUTOSEL 4.18 019/113] x86/mce: Add notifier_block forward declaration Thread-Topic: [PATCH AUTOSEL 4.18 019/113] x86/mce: Add notifier_block forward declaration Thread-Index: AQHUQIuEEenFU4Y5f0iePYFbccOJ2w== Date: Thu, 30 Aug 2018 18:01:46 +0000 Message-ID: <20180830180050.35735-19-alexander.levin@microsoft.com> References: <20180830180050.35735-1-alexander.levin@microsoft.com> In-Reply-To: <20180830180050.35735-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CY4PR21MB0856; 6:Hx+cs86D6+4NsPshhPQt9RbHZL3UE+OItAxhc4Vd1Dgv/NPX6z8TZSk/S69W6brBxrqgykYPfbjHZeKUb60Yy2e3DK/cX92W7Jr+CZypCSQofZbxK/uMN/BWAVrru+1/FNdnDC2CoJjJzvuuB3N2zC7Go/ZR2uJZpkzie9apxVnQDSPsgBM4bdqDRgSTqUebOWM2e2BnOGqedXvfVoj2uXoU+j2jHsy+N2J8sdBjRHvNdirlmryprBAzwLbXp1oXNx+uXSEwTvP8qCkrMKNkt5EroqTO3xybCum9TQW1xw/EJrBj6bPy4WTxc0O4m/SCdtM9zhGRL6V2noMoyxtwKC+erNJXnH2XGzrS1987gGZwPKtNPUn/V3nMchZt35mXsJRk18t7Km8vXD2ThReSEdcptouoLvuejQBOgBAsvYxhE8IT3+Te+RDFhCd4XBCxfFv//4q/ap+Aq69qqizZCA==; 5:388WRZEKTVT0fchza1jPAGaHUDROXXwfYSYoEBb6zAm2I9z9SS/5CIsWHa5nj57ycJ0Iz1n5R8mXVRL6cVqz4LiFbdz46D/qGfE71tNMZG7j6GeZNT7kifZGL689QS9nLZww4quSx1gCgQ3c6cqIeFRg6Ht+TaSgeKkTooeMy6A=; 7:MMnY6XmsiIyIf6YYIGk0ue5zEdJCp4TEMApz5C0SKroBfOLfsfObphEPTk+EBVSASr7Sj2j1ocd0ed+BAGmJ5uiqgh8uw07VH+SPYaUenTCwD5h1agovkwpt5k2hQEgLn8ifc1OFKhnrCD3xa7+g8dL1niya/4a61aiMuOxkRsjmpIBp+6cSRtdYBZChqCA1E9gzlXEpY7GrSXBpfeqe+DIdycWBWssONB/2fh+gNElFbBw+QlegEVOY5PSteZUa x-ms-office365-filtering-correlation-id: 8fa294b7-bfb1-4d45-6f23-08d60ea2a694 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(4534165)(4627221)(201703031133081)(201702281549075)(5600074)(711020)(4618075)(2017052603328)(7193020); SRVR:CY4PR21MB0856; x-ms-traffictypediagnostic: CY4PR21MB0856: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(42068640409301)(17755550239193); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231340)(944501410)(52105095)(2018427008)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699049)(76991033); SRVR:CY4PR21MB0856; BCL:0; PCL:0; RULEID:; SRVR:CY4PR21MB0856; x-forefront-prvs: 07807C55DC x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(376002)(346002)(39860400002)(396003)(366004)(199004)(189003)(10290500003)(14454004)(86612001)(7736002)(305945005)(4326008)(478600001)(107886003)(86362001)(72206003)(966005)(25786009)(2900100001)(76176011)(99286004)(22452003)(316002)(54906003)(2906002)(106356001)(3846002)(5660300001)(8676002)(105586002)(2351001)(81166006)(81156014)(1730700003)(6916009)(68736007)(14444005)(256004)(217873002)(8936002)(6116002)(1076002)(6506007)(102836004)(36756003)(5250100002)(2501003)(186003)(6512007)(26005)(6306002)(53936002)(486006)(476003)(2616005)(11346002)(446003)(97736004)(5640700003)(6436002)(10090500001)(6486002)(66066001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR21MB0856; H:CY4PR21MB0776.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: KNOKZBH7MTTw2jIwZjQTwZFq1DZeaASQFKdad6r9oTC9OBrsso3gR3ppQygBodylkw8rYeVBtKb52aP1+IC5JI2Bxo8aRKpqnrkna4UjgqDP/AadApRLyTBz9pYwfAW+GYDDV3s9GhhCkRzgYhHkK08QSJLcJh6dQPXYv5HEGhauDjU2qyKF+Lr+M8qUtQfpspuug/aqdbtVE5DnbNFhsKIWAHz3vt9i1idbSb9wmMQzcrUazu/IfXiXpUs2uAt/3UJyv5nOcaUuzCGq3YTW7qo0vkyWdlUTa/pd3MjXUDT/klHu/VQl4BVHCg6sMi29ozH1iUHPwwsz/cCcF2wg/gk3JyGcDHfPScn6x58bXxY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8fa294b7-bfb1-4d45-6f23-08d60ea2a694 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2018 18:01:46.1430 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0856 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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 --- arch/x86/include/asm/mce.h | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h index 8c7b3e5a2d01..3a17107594c8 100644 --- 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);