diff options
authorThomas Gleixner <>2017-06-23 10:50:38 +0200
committerIngo Molnar <>2017-06-24 08:48:51 +0200
commit26fcd952d5c977a94ac64bb44ed409e37607b2c9 (patch)
parent8d829b9bb878904f3419af8003176a12910b94e8 (diff)
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 <> Signed-off-by: Thomas Gleixner <> Cc: K. Y. Srinivasan <> Cc: Linus Torvalds <> Cc: Peter Zijlstra <> Cc: Vitaly Kuznetsov <> Cc: Fixes: dee863b571b0 ("hv: export current Hyper-V clocksource") Link: Signed-off-by: Ingo Molnar <>
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h
index fba100713924..d5acc27ed1cc 100644
--- a/arch/x86/include/asm/mshyperv.h
+++ b/arch/x86/include/asm/mshyperv.h
@@ -2,8 +2,7 @@
#define _ASM_X86_MSHYPER_H
#include <linux/types.h>
-#include <linux/interrupt.h>
-#include <linux/clocksource.h>
+#include <linux/atomic.h>
#include <asm/hyperv.h>