From 68c7faf0003d46ccb2c68a1d777b5634984cd6ff Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 28 Oct 2008 20:52:20 -0400 Subject: PR6967: fix s390x compilation error re on_each_cpu --- runtime/autoconf-oneachcpu-retry.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'runtime/autoconf-oneachcpu-retry.c') diff --git a/runtime/autoconf-oneachcpu-retry.c b/runtime/autoconf-oneachcpu-retry.c index d4745a48..3564eb2c 100644 --- a/runtime/autoconf-oneachcpu-retry.c +++ b/runtime/autoconf-oneachcpu-retry.c @@ -1,5 +1,21 @@ -#include -#include +/* + * PRs 6923 and 6967: + * #include should be sufficient, but there are some + * problems with #include hygiene in this area: + * i386, recent kernels: linux/smp.h needs linux/irqflags.h. + * s390, RHEL5.2: linux/irqflags.h needs asm/system.h (and + * linux/kernel.h, which asm/system.h includes). + * + * #include is probably redundant here, since + * everybody's seems to include it, but nobody + * seems to #include without first. + * + * includes on most architectures, + * so we don't explicitly include it here. The exception is ia64, + * but alone seemed to be sufficient for ia64 here. + */ +#include +#include #include static void no_op(void *arg) -- cgit