x86/ras/inject: Make it depend on X86_LOCAL_APIC=y
authorBorislav Petkov <bp@suse.de>
Mon, 23 Jan 2017 18:35:06 +0000 (19:35 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 24 Jan 2017 08:14:52 +0000 (09:14 +0100)
commitd4b2ac63b0eae461fc10c9791084be24724ef57a
tree094a67f1fb2b52ae44e4ec3a87e371a380c0509a
parenta4685d2f58e2230d4e27fb2ee581d7ea35e5d046
x86/ras/inject: Make it depend on X86_LOCAL_APIC=y

... and get rid of the annoying:

  arch/x86/kernel/cpu/mcheck/mce-inject.c:97:13: warning: ‘mce_irq_ipi’ defined but not used [-Wunused-function]

when doing randconfig builds.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Yazen Ghannam <Yazen.Ghannam@amd.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170123183514.13356-2-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/Kconfig
arch/x86/kernel/cpu/mcheck/mce-inject.c