s390/topology: remove sysinfo header include, add forward declaration instead
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 3 Sep 2012 12:11:32 +0000 (14:11 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Sep 2012 13:45:06 +0000 (15:45 +0200)
Any change to sysinfo.h causes a whole kernel recompile since sysinfo.h is
included by topology.h, which again is used nearly everywhere.
So remove that include and add a forward declaration instead.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/topology.h
arch/s390/kernel/topology.c

index 0837de80c351d58ac2680554b576a46c1d445347..1e6c446e67e100c1afd3e3b4590dab24b7b24eb9 100644 (file)
@@ -2,8 +2,8 @@
 #define _ASM_S390_TOPOLOGY_H
 
 #include <linux/cpumask.h>
-#include <asm/sysinfo.h>
 
+struct sysinfo_15_1_x;
 struct cpu;
 
 #ifdef CONFIG_SCHED_BOOK
index 05151e06c38808e8fb7e70acf487aaae6c031e93..fc957f2eef7c1071ed06bc83e8599d2a30e69b1e 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/cpu.h>
 #include <linux/smp.h>
 #include <linux/mm.h>
+#include <asm/sysinfo.h>
 
 #define PTF_HORIZONTAL (0UL)
 #define PTF_VERTICAL   (1UL)