s390: Fix a header dependencies related build error
authorLi Zefan <lizefan@huawei.com>
Thu, 7 Mar 2013 09:35:53 +0000 (17:35 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 11 Mar 2013 09:43:35 +0000 (10:43 +0100)
commitcb16b91a449afd01b85ec4e59f30449d11c4acd7
tree614694aca044af054e2fe18f7017c6fbf0a8f703
parent1abccd7419de9829bcdf9ab1f81d5f6cf74d55d3
s390: Fix a header dependencies related build error

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 <fengguang.wu@intel.com>
Tested-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Li Zefan <lizefan@huawei.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Link: http://lkml.kernel.org/r/51385F79.7000106@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/s390/include/asm/cpu_mf.h