From patchwork Fri Aug 17 10:01:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 144459 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp572110ljj; Fri, 17 Aug 2018 03:02:44 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx8LDMtvEOmW2VPJ2uNmQMJAC5j+6XlFl3WjDsx8iharo1BgT2d+6YPThNSH+jISXCtiHzv X-Received: by 2002:a63:3c0c:: with SMTP id j12-v6mr31900070pga.440.1534500164203; Fri, 17 Aug 2018 03:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534500164; cv=none; d=google.com; s=arc-20160816; b=bmFqf8C1jiJvSceRqxcgWFzKZ/b5DtJe/7wL4IdVe6OB72AyKax6mfnp+rFNFuuY0w krEI5GScxmoWFlp+O4BT5dswXsE1QIwsKvU9aRYohvMjAah1YL31z6eaGjYolMUxreNB zgAf10wO7f8QFVfZYDexHXj0Oao9V+hk+irRDxJFUj+t062oSiDbgQaGpS/ih0CxyWmB kbKQstOzTWDBMlzH/gqutS2yVxxQyq+s9ZVDUJg5dV9fcV0eYc/SWuA0Ny8yGL/FKQ6R +nPeKhRi9Xzkp9ht9xwhIEuusAsgjW1davBBBsfNwZsilKVjNQQdDN4pTFQPRlh3EiSN r0/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vFY/tPhtIWRq3K2JPlSUssbE2mepjVsIpyBaEfcZwwY=; b=ovgXZm270n3qNrDU7k84SwzvTcGOuTAMBYUzTffUeky51t158QyMzQ6OGw7vzjozp9 d8B1MhUTwF3Gtm093qxuGt7LSJACvGb8A28ulGi6fYjXdKrW5ts1U516TZu5+aQL1BCp 1vqnXxxyIaz0VGGp2hlpQceRr6MOKZjVktz8mGOdaQnsVihlEFylYFHWX4Xm7QR+22QO E9cLwH0mx81BaE5ZXnUUEqwIdmC4ju3aTHrUn8E0ITgK+P35SWQ/PXnWueBhaO+g13RM S99ywm4Y0gfH+C/nUdoqaMvQGZuO4T8sIvY+n6mA0kxPYcJXuC04tfSJTtn1huTvDNee Yc3g== 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 r29-v6si1691985pff.24.2018.08.17.03.02.43; Fri, 17 Aug 2018 03:02:44 -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 S1727057AbeHQNF3 (ORCPT + 32 others); Fri, 17 Aug 2018 09:05:29 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:45150 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbeHQNF3 (ORCPT ); Fri, 17 Aug 2018 09:05:29 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0M21dP-1gA3N422qx-00u4eZ; Fri, 17 Aug 2018 12:02:01 +0200 From: Arnd Bergmann To: x86@kernel.org Cc: Nicolai Stange , Arnd Bergmann , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH] x86: mce: add notifier_block forward declaration Date: Fri, 17 Aug 2018 12:01:36 +0200 Message-Id: <20180817100156.3009043-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:R0c+WypTWKGLzDvn9yClcpZrzgal3Kubwv4Pp4u/9c+ujoU11uI F6NTkguZZeXk7cW0AB5bfeoiwcy50Gj4diPVNJzjaqT9v6UaV44evL5MYOIjRXShoBiqBy7 MVsyVn1kRwx8YB3UFbxQV5m8zKGvKBI0E43JVEMBo0rKrEDBhoupEln9ZPMECtd0+Ik2I3v o7UK7ze0C4lwcg9NKHpLg== X-UI-Out-Filterresults: notjunk:1; V01:K0:3GhQ+9UHCck=:97U978XbdwVS18+6l/Ncrp pUKfCiT6DPa8i3aKOXAuDKskAlV1bJUx4fiGK+WqNa58oYCiGmNg8bO1MJpnLSY3Qpv8twbOY jA3aDhb3HP/tcymzLFMNsfCX+if9Sh1GqTCNM5LMzFXOvax1VYZB/n1kqS59qQIztq5e/ETMn IDldSS2vTICRmAwGjzGX8bPmF5T/kNtM9MW+xMPx9Iaz6p6C+qpuw6B98vAmZdDXWpkduLSKW IOtx2bk79O4HBqnAvJbdL7Jk7KHs89JYqRw3hRUkuu6hODBxJBUUcxIerjG0GoTb1wpRzo4c/ ZWgBXsmEJcst8U90D5UlyZsxTg6k8+QuUPpJEmLqm0pYrtCfUJQfx44fPazSbe1rO7AOlTiot vK/xEqIR80iNbGiPWCFG7nfls0KF5QDy9xzhpCCT56Es/P9vZgwS8ID7SM5dVXNqLjMZ8fGOP 0D17nyFRFfFHo4UbegU9IVPtknGTU5fLqTkJyHK3z+JgGWVnvoCHy4Tu4QECsi3w0GqU2oiT/ yxCDXFnIRBjFCf9lsvM7dXsY5TtsPArwY53DDd+WY6pmsZRpI7EnmMV+OLJVRKY22Dcw8cC6j qNwxo7odkBQPoQso4x1dm+6H1yDL8py7VDnxr1hRzAu00+SLyJsgjQRt2YbQ1wALvXOydlFIo zAF3s2OFfNxDOVtXhtY4VxizI6WlQL9gqQVgyK3ol/KWe3Htck3p67i+F3hpzrFKaSu4= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without linux/irq.h, we don't see a 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 --- arch/x86/include/asm/mce.h | 1 + 1 file changed, 1 insertion(+) -- 2.18.0 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);