]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mshyperv: Remove excess #includes from mshyperv.h
authorThomas Gleixner <tglx@linutronix.de>
Fri, 23 Jun 2017 08:50:38 +0000 (10:50 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 24 Jun 2017 06:48:51 +0000 (08:48 +0200)
commit3230698356b7753029ba49c9e2749f3366995d4b
treece32288b58ab87c450ecef24a7bdd45df5d9e931
parent9eec451a11dfd00a6d7eeab3053b04c2a3cb1837
x86/mshyperv: Remove excess #includes from mshyperv.h

A recent commit included linux/slab.h in linux/irq.h. This breaks the build
of vdso32 on a 64-bit kernel.

The reason is that linux/irq.h gets included into the vdso code via
linux/interrupt.h which is included from asm/mshyperv.h. That makes the
32-bit vdso compile fail, because slab.h includes the pgtable headers for
64-bit on a 64-bit build.

Neither linux/clocksource.h nor linux/interrupt.h are needed in the
mshyperv.h header file itself - it has a dependency on <linux/atomic.h>.

Remove the includes and unbreak the build.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: devel@linuxdriverproject.org
Fixes: 328f4096efcb ("hv: export current Hyper-V clocksource")
Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1706231038460.2647@nanos
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/mshyperv.h