From: Kirill A. Shutemov Date: Mon, 18 Nov 2013 08:47:27 +0000 (+0200) Subject: kernel/bounds: avoid circular dependencies in generated headers X-Git-Tag: firefly_0821_release~176^2~4922^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=24b9fdc59ac365e7e313e5af44c7bfe31c15c774;p=firefly-linux-kernel-4.4.55.git kernel/bounds: avoid circular dependencies in generated headers has heavy dependencies on other header files. It triggers circular dependencies in generated headers on IA64, at least: CC kernel/bounds.s In file included from /home/space/kas/git/public/linux/arch/ia64/include/asm/thread_info.h:9:0, from include/linux/thread_info.h:54, from include/asm-generic/preempt.h:4, from arch/ia64/include/generated/asm/preempt.h:1, from include/linux/preempt.h:18, from include/linux/spinlock.h:50, from kernel/bounds.c:14: /home/space/kas/git/public/linux/arch/ia64/include/asm/asm-offsets.h:1:35: fatal error: generated/asm-offsets.h: No such file or directory compilation terminated. Let's replace with , it's enough to find out size of spinlock_t. Signed-off-by: Kirill A. Shutemov Reported-and-Tested-by: Tony Luck Signed-off-by: Tony Luck --- diff --git a/kernel/bounds.c b/kernel/bounds.c index 578782ef6ae1..5253204afdca 100644 --- a/kernel/bounds.c +++ b/kernel/bounds.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include void foo(void) {