]> Git Repo - linux.git/commitdiff
s390: Fix a header dependencies related build error
authorLi Zefan <[email protected]>
Thu, 7 Mar 2013 09:35:53 +0000 (17:35 +0800)
committerIngo Molnar <[email protected]>
Mon, 11 Mar 2013 09:43:35 +0000 (10:43 +0100)
Commit 877c685607925238e302cd3aa38788dca6c1b226
("perf: Remove include of cgroup.h from perf_event.h") caused
this build failure if PERF_EVENTS is enabled:

   In file included from arch/s390/include/asm/perf_event.h:9:0,
                    from include/linux/perf_event.h:24,
                    from kernel/events/ring_buffer.c:12:
   arch/s390/include/asm/cpu_mf.h: In function 'qctri':
   arch/s390/include/asm/cpu_mf.h:61:12: error: 'EINVAL' undeclared (first use in this function)

cpu_mf.h had an implicit errno.h dependency, which was added
indirectly via cgroups.h but not anymore. Add it explicitly.

Reported-by: Fengguang Wu <[email protected]>
Tested-by: Fengguang Wu <[email protected]>
Signed-off-by: Li Zefan <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/s390/include/asm/cpu_mf.h

index 35f0020b7ba77827fc08a503d8f58f5a6a17844e..c7c9bf647c3e2e52806bfa2b6471554210c6e9d3 100644 (file)
@@ -12,6 +12,7 @@
 #ifndef _ASM_S390_CPU_MF_H
 #define _ASM_S390_CPU_MF_H
 
+#include <linux/errno.h>
 #include <asm/facility.h>
 
 #define CPU_MF_INT_SF_IAE      (1 << 31)       /* invalid entry address */
This page took 0.05594 seconds and 4 git commands to generate.