]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Add notifier_block forward declaration
authorArnd Bergmann <arnd@arndb.de>
Fri, 17 Aug 2018 10:01:36 +0000 (12:01 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 20 Aug 2018 16:04:42 +0000 (18:04 +0200)
commit0cb333b58879d5239e1cba8a3c21a5e621fe3013
tree117a310565eb5087a05628ac201ac1024b38f281
parent0b3e559a77dd455f49b91ac61b6c914e43f488ce
x86/mce: Add notifier_block forward declaration

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: c2e3cb8e4ffe ("x86: Don't include linux/irq.h from asm/hardirq.h")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Nicolai Stange <nstange@suse.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20180817100156.3009043-1-arnd@arndb.de
arch/x86/include/asm/mce.h