Skip to content

Commit cb16b91

Browse files
lizf-osingomolnar
authored andcommitted
s390: Fix a header dependencies related build error
Commit 877c685 ("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>
1 parent 1abccd7 commit cb16b91

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/s390/include/asm/cpu_mf.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#ifndef _ASM_S390_CPU_MF_H
1313
#define _ASM_S390_CPU_MF_H
1414

15+
#include <linux/errno.h>
1516
#include <asm/facility.h>
1617

1718
#define CPU_MF_INT_SF_IAE (1 << 31) /* invalid entry address */

0 commit comments

Comments
 (0)